Posts

Showing posts from July, 2011

How to append a variable to all the javascript files before they are loaded in a page in cake php? -

I need to add a variable to all javascript files, while they are automatically included in a page to load the page Before the variable should be added. The following is an example of what I need. var scriptfile = 'http: //www.whatever com / myjs.js? Rnd = '+ revision_number' I need to use cake PHP I I will extend the Javascript Helper, and I will write my own custom method to attach the string, then call it the new method in my layout. The link is the method you probably want to overwrite if you do not make any custom

Assigning Process to Cores using Perl -

How can I assign processes to specific cores? I have 16 core machines and many cores need to allocate processes, yet some of them are going to run on the same core. Parallel :: ForkManager can do this? Or how do you do with using standard pearl distribution? thanks thanks Under Windows, you You can use Win32 :: Process , there is a subtopic called SetProcessAffinityMask , which you should do. Under Linux, look for a Sys :: CpuAffinity .

How To - Store Key Value Pair in Two Dimensional Array and HashTable using JQuery? -

Does anyone redirect me to the correct link or give an example of how to work with two-dimensional array or HashTable in JQuery ? I tried Google but did not get the answer. I want to avoid using any plugins I want to do it, store some information and get them in a happier way. Depending on you as a key in your "hashtable", you Instead of two-dimensional array objects may want to use objects with properties. For example: var hashtable = {}; Hashtable ['screaming'] = ["red", "orange"]; Hashtable ['sweet'] = [["sky", "yellow", "green"]; You can also set and access values ​​in an object using point notation: hashtable Riding = ["red", "orange"]; Warning (hashtable.screaming [0]); If you want to keep an eye on add key / value , then the object is the way to go: Var hashtable = { }; Hashtable ['key1'] = 'value1'; Hashtable ['key2'] = 'value2...

android - Java regex help needed to split string please! How to ignore an empty line? -

I am a complete noob for regex and I need help in dividing the string I am inputting the following data 635 11% R1908 388 FG Root Top 61 1% S 42 152404 of 29716 FG System System Server 38 0% S 1 840 340 FG Route / System / bin / Qumd 114 0% s 16 120160 FG radio com.android.phone 19156 which is nothing but your regular top output 655 11% R1 FG Root Summary S The code I now use to do is I while ((inputLine = in.readline ()) = null) {String [] segs = inputLine.split ("[] +"); Str [i] = segs [0] + "" [1] + + "[2] +" "+ [2] +" "+ Segments [3] +" + + Segus [6] + "+ + Segus [ 7] + "" + Segus [8]; Logs. V ("top output", str [i]); I ++; J ++; } But the problem I am experiencing is that I am on logcat java.lang.ArrayIndexOutOfBoundsException > Where am I going, and what can I do to stop it? Thanks for helping. EDIT: After reading the comments, I know that there are some empty lines in my out...

iphone - How to make UIViewController re-load the view? -

My view controller is set to load views from the Nib file at some point in viewDidAppear I can change self.view and the scene may disappear, next time I can decide to load the original view. How can I do this? One way to do this is to view the controller property object in Dedepper: [Auto Set Mese Week Controller: [[[MySubViewController alloc] initWithNibName ...] Autorick]]; Your mySubViewController property will release the previous copy of the View Controller and will maintain the new one. Hope this will be helpful.

java - Hibernate Enum mapping using annotaions -

I have an existing database that is now connecting to using hibernate I do not change this data at the moment May be able to do everything except the one column. I have a status column, which contains the values: New and the column is mapped as follows: @column (name = "condition", drain = False, length = 50) @ Nominated (enumotype pillar) private teammemberstats status; I really want to map this column as Java Enum (for application reasons), but due to the fact that 'new' in Java One keyword is I can not do as an enum member. If I have anman contstants, in myriad, in and out of the passive form EnumType fails inside it, it does an Enum.valueOf (). Is there any way to mapping it in my anonymity to write a complex user note? - Added content My anomimas like this: public enum TeamMemberStatus {NEW, MAILED, IN, OUT} is a valid Java enumeration, but does not match the case of the database. If I change it to match it to the database...

c# - Why is the "this" pointer null in a delegate? -

I have the following code (details have been removed for clarity): Private primate class base & lt; TResult & gt; {Private Redoni system.fanks & lt; TResult & gt; Func = null; Protected Base (System.Func & lt; TResult & gt; func) {this.func = func; } Public Tresult Execute () {return.func (); }} Private class created: base & lt; Bool & gt; {Bool myValue): Base (Representative ()) This Return MyValue ();}) {this.myValue = myValue; } Private bool myValue = false; Private Bull Live () {return.myValue; // "this" indicator is empty here ...}} derived d = new received (true); Bull results = d.Execute (); // This results in an empty reference indicator (commented on) Any thoughts? Thanks, Dave Is this also legal is? This is not defined at that point. IIRC, this is a compiler bug - fixed in 4.0. Here is the 4.0 compiler: Error 1 keyword 'this' is currently not available Reference C: \ Users \ Marc \ AppData \ Local \ T...

django tutorial stuck -

So I'm doing tutorials on DJ Practical Projects and came very far. I have this code: def get_absolute_url (auto): return ('coltrane_entry_detail', (), {'year': self.pub_date.strftime (" Get_absolute_url = models.permalink (get_absolute_url) / east > I get an indentation error If I get a work / weblog / url but I want indent, but if I click on the "read more" link then I always have a Only place the pages on the page / weblog / and not / weblog / date / article. / P> If you know the tutorial, then you may know the error if there are not all files here: url project: from django.conf. Urls.defaults import * from myproject.views import * from django.views.generic.simple import direct_to_template import django.contrib import administrator admin.autodiscover () urlpatterns = patterns ( '', #Coltrane project Uarelpatns: (R ' Search / $ ',' MyProject.search.views.search '), (R' weblog / $ ', included ...

.net - Automatically Reloading a Referenced COM Interop Assembly when it is Rebuilt -

I have a Visual Studio 2008 solution that has the following projects: A C + + / ATL COM library A C # library which uses a CD library A C # unit test library (using MSTEst) that references the other two libraries The C + + COM library project has a custom build phase that creates a .NET Interop library , Which looks like this: tlbimp /asmversion.1.1.0.0 "$ (TargetPath)" / out: "C: \ libraries \ MyProject.Interop.dll" Then c # library and C # unit test library reference c: \ libraries \ MyProject.Interop.dll . My problem is that when I am modifying the IDL in the CD library, the library and interop library are rebuilt, but C # projects still have copies of the old interop libraries in which the output directory , And they do not get the update, I have manually removed those old libraries so that the new can be identified. I can get almost to work on the falls by setting a local property copy for reference in C # projects. But then I'm hav...

java - How to implement some if-then logic with JSF and Facelets? -

I have a bean with the field status . Depending on the status the values ​​should be applied to present the different CSS class. Therefore, I need something like this (pseudocode from very real things): if condition == "approved" cssClass = "green" == "Disapproved" cssClass = "red" & lt; Span class = "cssclass" & gt; Some information & lt; / Span & gt; I tried to implement jstl but I can not work with Facelats and JSF (but I have heard that it is possible, maybe its truth) . Here's the code: & lt; C: select & gt; & Lt; C: when test = "# {report.approved}" & gt; & Lt; C: set var = "statusClass" value = "approved" /> & Lt; / C: When & gt; & Lt; C: when test = "# {report.rejected}" & gt; & Lt; C: set var = "statusClass" value = "disapproved" /> & Lt; / C: When & gt; & Lt; C: when test = ...

linux - Tracing linked libraries -

I'm getting some errors which I think my Linux program is connecting to libraries that it's going to do. How do I get the full path for all linked libraries? I know ldd will name me, but how can I use it to get the full path? Thank you. Actually ldd whatever you want with the shared library dependency of your application Finding it gives full path with file name. $ ldd v8test linux-gate.so.1 = & gt; (0xb78b2000) libz.so.1 = & gt; /usr/lib/libz.so.1 (0xb787e000) librt.so.1 = & gt; /lib/i686/cmov/librt.so.1 (0xb7875000) libcppunit-1.12.so.1 = & gt; /usr/lib/libcppunit-1.12.so.1 (0xb782c000) libstdc ++ So.6 = & gt; /usr/lib/libstdc++.so.6 (0xb7604000) libm.so.6 = & gt; /lib/i686/cmov/libm.so.6 (0xb75dd000) libgcc_s.so.1 = & gt; /lib/libgcc_s.so.1 (0xb75bf000) libc.so.6 = & gt; /lib/i686/cmov/libc.so.6 (0xb7478000) libpthread.so.0 = & gt; /lib/i686/cmov/libpthread.so.0 (0xb745f000) libboost_system-mt.so.1.38.0 = & gt; /usr/...

c - error LNK2019 unexplainable when trying to port openldap to windows -

Text after "itemprop =" text "> I have a CMake project created in Visual Studio 2005 after creating an LDAP Abstract API on my project Linux Having worked on Windows XP I'm trying to work on windows in some way. I have found an unusual linking error of the LNK 2019 type code: main .obj: error LNK2019: symbole foreign non résolu _strcpy reference dowry La fonction _menu This function is in my main.c and adding error is coming from my other file LDAP. The ones that are load_values_from_attr () are function codes: / **** / static int16 load_values_from_attr (t_LdapSearchContext ctx, uint32 result_max_count, LDAP * ld, LDAPMessage * result_message, BerElement * ptr) {UINT16J = 0; UINT16i = 0; Char * str_attr; Straight barval ** straw_wale; Str_attr = ldap_first_attribute (LD, result_message, & amp; ptr); If (str_attr == NULL) back 1; Str_values ​​= ldap_get_values_len (ld, result_reference, str_attr); Strcpy (ctx.attributions [i] .attrs, str_attr);...

Are there any python libraries/packages like Ruby's Juicer/Sprockets/bundle_fu? -

A pager is a library that manages to merge and merge JS \ CSS files ... As Anurag said, Django users can use. If you are using Pyrenees or TurboGuair 2.x, there are two real time options: (Realtime-timed helplines for css / js that cache output To support the use of beaker) (A forkive heblers of minimization. By this, however, according to the author of MinificationWebHelpers, devs to merge changes to cooperate with upstream Are not ready) For my best knowledge, only real time options for Django and Pylons are minisation and insertion. They do not parse Javascript to include any kind of import / instruction. If you prefer a batch option, then I can not think of writing in particular Python, but these options are I have seen using other Python developers: Write a Python or a shell script that runs low-level tools like YUI Compressor (Java) or it does not do it for you. (One of my projects does this. It does not include import / instructions, but it works with minim...

WPF TreeViewItem Expanding Animation -

I have used the code from the question, but the animation does not work on the first extension, as a result of its expansion. Does events Any ideas? Change the trigger value to false and swap the actionboard exit action

Sql Server Catalog/DB pointer -- -

I have a production server and I have to standardize the names of all DBs on the server ProjectName Whatever the problem, I have a database of problems. projectName_logging I want to rename this projectName.logging (little OCC?) The problem is that the connections are strings that all say ProjectName_logging Is there a way to say that a connection to project name-logging is to automatically redirect to a catalog called Project Name.logging? As requested by OP, I am giving an answer to my comment. What you really want, it seems that the database name is a synonym, which does not exist, but you can vote for it.

regex - how to truncate a string using regular expression in perl -

I have the following string in a file and do not want to leave the string in more than 6 characters. How to use regular expressions in Perl? The original file is: cat shortstring.in: & lt; Value & gt; 1234@google.com< / Value & gt; & Lt; Value & gt; 1235@google.com< / Value & gt; I want to get the file as: cat shortstring.out & lt; Value & gt; 1234 @ G & lt; / Value & gt; & lt; Price & gt; 1235 ft. & Lt; / Pricing & gt; I have a code, as such, s / & lt; Value & gt; There is no more efficient way of using (\ w \ w \ w \ w \ w \ w) (). *) / $ 1 /; ? Here is a part of my code: while ( w / w \ w \ w \ w \ w) (. *) & Lt; / value & gt; / $ 1 /; print output $ $ "$ _ \ n";} Else {print $ output_handle "$ _ \ n";}}

how can I get the position of a cell in a table using javascript? -

By the position I mean, how many columns are on the left side of the cell and how many lines it is above. I really need two functions: function FindColPos (element) {/ * column find position / return colPos; } FindRowPos function (element) {/ * get row status / / find the row row; } The function should be written like this, I can not add my document to any item like ID because I have access to the document's head, where I will include JavaScript functions. (This is all part of another project in C #) The element given to the function will have a cell in one line (a & lt; td> gt; element), but it would be better if i & lt; TD & gt; and function parent & lt; TD & gt; . I'm not quite advanced to understand it on javascript, I do not even know it is possible. Hope you can help. You should be able to iterate over the previous nodes at the same level, and until you run out By doing so, calculate the appropriate nodes. Something like this fun...

internet explorer - Loading content via AJAX destroy the font in IE -

देखिए। नारंगी दबाएं - & gt; बटन और फिर & lt; - फिर से। यह पेजिनेटर पृष्ठ 1 डिफ़ॉल्ट रूप से दिखाता है और AJAX के माध्यम से अन्य पृष्ठों की सामग्री लोड करें हालांकि, डिफ़ॉल्ट पृष्ठ 1 सामग्री और AJAX लोड किए गए पेज 1 सामग्री आईई में समान नहीं दिखती हैं, यहां तक ​​कि जब html और css बिल्कुल वही हैं! ऐसा क्यों हो रहा है और मैं इसे कैसे रोकूं? @ जॉन, मैं इस कोड का उपयोग करने में सफल हुआ: $ ('.css-selector')। प्रत्येक (फ़ंक्शन (i , एल) {try {el.style.removeAttribute ('फिल्टर');} पकड़ (ई) {}}); और, अगर आप jQuery का प्रयोग नहीं कर रहे हैं, तो मुझे लगता है कि यह अभी भी काम कर सकता है: try {document.getElemenyById ('id_element')। removeAttribute ( 'फिल्टर'); } पकड़ (ई) {}

Problem finding text inside ReorderList(Ajax toolkit/ASP.NET) -

I've applied for a listing redistribute C # .net and everything works fine only one problem that I Can not retrieve the list data source For this reason I tried to get control of each item in the list without any success. This is my re-inventory list & lt; ajaxToolkit: reorderList ID = "rlVerticalMenu" Runat = "server" Draghandleelinment = "left" Aitminsrt location = "early" Detakifild = "id" Sort Ordrfild = "priority" enabled Krenwustet = "true" Onitm Rardr = "RL-Vrkitenms_itm Rikardr" callback Sistiel = "CLS Claakbak style" CSS class = "Sielsaraielarelsielsiantianer" & gt; & Lt; ItemTemplate & gt; & Lt; Div class = "clustered arrays" & gt; & Lt; Div & gt; & Lt; Asp: Label ID = "LblId" runat = "server" visible = "false" CssClass = "editable_textarea" & gt; & Lt;% # Eval ("id...

qt - Where to control the QWizard button? -

I am using QT, and I use a QWizard object that has many pages when a specific page When it comes, I first want to hide the "button" button, and show it to the user after doing something (like clicking on the radio button) ... I want to do something wizard Customize the control of when this specific page will be shown. The question is, I know how to hide the button, but I do not know which function I should use. I tried the QWizardPage constructor, initializePage function, "show" function, but all these functions do not work. If I put the button control in the wizard page builder, then the program will crash the wizard object is not yet. If I put it in the initializePage function, then some QWizard function will reset the button after the initial page function, and all customized settings will end. And the show ceremony can not be overwritten. I can not really know which function is usable. Is there a function like MFC loaded onset Active or Java ?? Whi...

c# - C HTMLagilitypack exception help -

foreach (masterurlList में स्ट्रिंग मूल) {HtmlWeb hwObject = new HtmlWeb (); HtmlAgilityPack.HtmlDocument htmldocObject = hwObject.Load (mul); सूची के & lt; स्ट्रिंग & gt; HrefTags = नई सूची & lt; स्ट्रिंग & gt; (); {HrefTags = ExtractAllAHrefTags (htmldocObject) का प्रयास करें; } पकड़ (अपवाद) {} मेरे पास पहले से ही मेरे कोड में एक पकड़ (अपवाद) है लेकिन एचटीएमएलएगिलिटीपैक पर क्या होता है। एचटीएमएल डॉक्युमेंट एचटीएमएलडीओओबैक्ज = एचडब्ल्यूओबाइजेक्ट। लोड (एमयूएल) मुझे वेबएक्सेप्शन अप्रबंधित होता है । रिमोट नाम का समाधान नहीं हो सका: 'www.eonline.com' मैं कोशिश से छुटकारा पा रहा हूं और मुझे पकड़ सकता हूं, और अगर मैं अपना प्रयास क्षेत्र बढ़ाता हूं तो मैं अपने सारे तार खो देता हूं। कोई भी सहायता कमाल की होगी! और मुझे पता है कि मेरा डीएनएस अच्छा है अपने स्ट्रिंग को रखने के लिए कोशिश क्षेत्र का विस्तार करें ... foreach (masterurlList में स्ट्रिंग मूल) {सूची & lt; स्ट्रिंग & gt; HrefTags = नई सूची & lt; स्ट्रिंग & gt; (); कोशिश {HtmlWeb ...

.net - C# 4.0 Optional Parameters - How to Specify Optional Parameter of Type "Guid"? -

यह मेरी विधि है: सार्वजनिक शून्य कुछ सिक्युरिटी (स्ट्रिंग ईमेल = "", Guid userId = Guid.Empty) {// कुछ क्वेरी} userId मुझे एक त्रुटि दे रहा है क्योंकि यह एक संकलन-समय स्थिर होना चाहिए, जिसे मैं समझता हूं। लेकिन जब भी मैं एक कंट्री घोषित करता हूं: निजी कॉन्स्ट खाली ग्रिड = गुइड। खाली; फिर विधि हस्ताक्षर को इसमें बदलें: सार्वजनिक शून्य कुछक्यू (स्ट्रिंग ईमेल = "", ग़ायड userId = emptyGuid) {// कुछ पूछताछ करें} अभी भी कोई प्यार नहीं। मैं क्या याद कर रहा हूँ? क्या आपने इसे Guid ala: सार्वजनिक शून्य से एक नया उदाहरण स्थापित करने की कोशिश की है। कुछ स्ट्रिंग ईमेल =" "," ग्रिड userId = new " Guid ()) {// कुछ क्वेरी} चाल करना चाहिए।

Configuring a CMake C++/Java Project to work with Eclipse -

I am currently trying to set up a VTK project in which CMK makefiles were written to work with emails The code that I need to use is both in C ++ and Java, but my main concern is that the existing project may be able to translate into something that can be understood with all dependencies etc. is. Please feel free to ask further questions. Cheers. You first need the package. Then you need to generate the Eclipse CDT project: cmake -G "Eclipse CDT4 - Unix Makefiles" / path / to / source / dir . The last step you need to do is to import the project into the current workspace: file - & gt; Import ... - & gt; Existing projects in the workspace .

javascript - targeting all elements in a div -

अभी मेरे पास यह $ ("। कंटेनर एक")। सीएसएस ( "रंग", "# FFFFFF"); जो "कन्टेनर" सफेद के अंदर सभी लिखे गए हैं तो मेरे पास इस तरह एक div संरचित है & lt; div class = "container" & gt; & Lt; div class = "header" & gt; & Lt; a href = "& gt; & lt; / div & gt; & lt; / div & gt; उस दूसरे डिवेल के अंदर लिंक केवल फ़ायरफ़ॉक्स में सफेद हो जाता है। क्या लाइन को ठीक करने का कोई तरीका है जेएस हेडर डिव के लिए एक और पंक्ति जोड़ने के बिना जे एस? कुछ है जो सभी बच्चों को चुनता है? यह एक वंश है और यह पर्याप्त होना चाहिए। जैसा कि मध्यस्थ ने उल्लेख किया है कि यह शायद एक विशिष्टता मुद्दा है। आप महत्वपूर्ण या कोई अन्य चयनकर्ता जोड़ सकते हैं। कंटेनर ए,। कंटेनर .header a । उन सभी की तुलना में रास्ता है, लेकिन अधिक देखने के बिना अब सब के लिए सुझाव देना है।

getJSON returning null phonegap(android) -

I am developing a phone-gap app in Android. In the app, I am calling a servlet called Returning JSON. Under app code, I am calling the following method through index.html in javascript JQuery.getJSON (omnibal, function (data) {warning (data)}); When the emulator warning is being displayed, but the data is always zero. However, if I launch index.html (main application file in phonegap) from the browser, then I can get Jason. That's it, even if I use $ ajax, please help me and tell me what I'm doing. A little later, but I still have this problem, and I have solved it, so if you If you do not correct this problem then it will be helpful. Therefore, the problem is not in JSON or PhoneGap, but it is in the Android manifest .xml file. You should have a tag like this: Android: Usage-permission Android: name = "android.permission.INTERNET" /> This should allow your application to work with the internet without this connection of your Internet conne...

asp.net - how to handle open/save dialog in browser when download a pdf file in C# -

hii, I have a mail list where I can select multiple mails and download I can (without opening / opening mail) During the download process, I update the mail status (download / open) and show content in PDF. Communicates open in the normal browser where the user can open or cancel the option. But if the user cancels, then the mail should not have an updated process. So I think of the update process if the user clicks on or opens, but how can I identify client controls (I think this depends on the browser) If I downloaded and unplied mail and Click the Cancel button in the dialog box The PDF creation code I am generating is in this link That used to open Pdf How can I manage this problem, please suggest efficient method to handle this problem (code if possible) If I understand the problem correctly, you have to implement an additional step before presenting the user with an open / save dialog. For example: Provide two buttons [open / save] and [cancel]. The first dia...

hex - Javascript - "One shade darker" -

Is it possible to use javascript to determine if a color is darker than the current background? Probably some hexadecimal addition / subtraction? I have a menu that can be any color and if it is not very difficult, then submenu can be a shadow dark. How does one get this effect? As Abby comment, 'shadow' is not very well defined. Despite this, it might be easier to think in any other color presentation, like 'V'. You can either convert, decrease V and change back to RGB hex

javascript - Simulate AJAX latency with a wrapping closure -

I prototype ajax to simulate AJAX latency I want to wrap the request. I mean, using the feature of closure and delay of prototype (), but apparently there is something wrong with my code / * * Objective: AJAX while developing on a local host Simulation of procrastination * What's wrong? * / Ajax.Request = (function (original) {return function (url, options) {returning original (1, url, options)}}}}) (ajax request); This worked for me (prototype 1.6.1): Ajax request. Protopp Start = Ajax. request. Start Prototype IR; Ajax.Request.prototype.initialize = function ($ super, url, options) {come back. Start (stop). Disley (2, $ super, url, options); }; I believe that the method signing for Ajax.Request.prototype.in initialize is different in the old version of the prototype (i.e. the $ super parameter) . However this will update it for all Ajax requests.

Rails PDF Prawn Headers and Footers -

Is there any easy code to set the header and poucher on all N pages in the PDF file generated by the PRWN plugin? Write in " report.pdf.prawn " file The code is the direct coding area of ​​the PDF view page file report.pdf.prawn pdf.text code below "Creation Date" Has gone + time.now.strftime ('% D-% m-% Y') pdf.text "Page number: # {pdf.page_count}" What I want These values ​​have to be placed in the header or / and footers Thanks for doing so for your concerns а lot. I wanted to do this work since I got the link. create_date = time.now.strftime ('% d-% m-% Y') page_count = Pdf.page_count powered_by = @companylogo # @ companylogo Administrator will get from Prawn :: Document.gen Erate ("show_sd_report_pdf.pdf" ,: skip_page_creation = & gt; true) do PDF. Page_count.times do I | Pdf.go_to_page (i + 1) pdf.draw_text "Creation Date:" + build_date, at => gt; [590,530] pdf.draw_text "Page ...

Display android listview based upon listview selection -

I have a list view, the values ​​in this example are: UK, US, France These values ​​are pulled from a constant array in my string.xm file. In addition, there are 3 ARAs within string.xml, which are available in every UK, U.S.A. And France & amp; Basically I want to load these arrays in a new listview, which is based on the user click event. Basically I do not know how to pass user selection in new list view and populate accordingly. I know that the use of an intention in this process has been included but I am not sure when Andrew Nebbe is there! Any help is greatly appreciated! Cheers The first context (activity / service etc.) ) You have a few options: 1) Use: Intent mIntent = new intent (this, example .class); Bundle Extras = Mentent.Getextras (); Extras.putString (key, value); 2) Create a new bundle Intent mIntent = new intent (this, example class); Bundle ambulance = new bundle (); MBundle.extras.putString (key, value); MIntent.putExtras (mBun...

c# - TimeZoneInfo.Local on XP -

मेरे पास ऐसा कोड है जो विंडोज 7 पर ठीक चल रहा है ... TimeZoneInfo _timeZoneInfo = टाइमज़ोनइनफ़ो। लोकल; यह XP SP3 पर काम नहीं करता है त्रुटि दी गई है ... 'System.EntryPointNotFoundException' प्रकार का एक पहला अवसर अपवाद System.Core.dll में हुआ अतिरिक्त जानकारी: एक प्रविष्टि खोजने में असमर्थ बिंदु 'GetDynamicTimeZoneInformation' को DLL में 'kernel32.dll'। फ़ंक्शन के लिए सहायता को देखते हुए GetDynamicTimeZoneInformation मैं देख रहा हूँ कि यह केवल Vista पर उपलब्ध है कोई भी विचार? अगर इसकी एक्सपी में नहीं है, तो आप इसका उपयोग करने में सक्षम नहीं होंगे, और दुर्भाग्य से यह सिर्फ एक अलग बॉक्स से एक DLL को कॉपी करने का मामला नहीं है। क्या आप टाइमज़ोन प्राप्त करने की इस पद्धति का उपयोग कर सकते हैं? एमएसडीएन का कहना है कि इसका समर्थन XPSP3 और उच्चतर है: टाइमज़ोन स्थानीयZone = टाइम ज़ोन। वर्तमान समय क्षेत्र;

Is there any API that allow to track object changes in entity framework -

Do anyone know that there is a solution like 'Hibernation History API' for institution structure? If not, then some history tracking exercises / patterns may apply to EF. I am a novice for EF yet. Any refs are welcome Thanks in advance. EF version 4 has the tracking units themselves, they track their changes and save them Can attach back to a different context. This is new to EF. The first version did not have this functionality.

asp.net - Why is Cookie available in Request immediately after setting using Response? -

In the pageload, if you give feedback. Add cookies (..., immediately on the next line, you can access it through the cookie. Cookies (... I know that under the cover, the cookie Requests are added in. Cookies by pure, but that cookie was never in the original request. If what I say is right, why is it that? Is cookie available in the following request Should not be? The request should not have immediate access. Cookies (... empty You are right, ASP .NET follows the scenario: After you add a cookie using the collection, the cookie is immediately available in the HttpRequest.Cookies collection, even if the customer has not been responding. - On MSDN Why is this? On an estimate, that's because developers expect it to work.

java - Definition and practical meaning of @SessionScoped -

मैं एक JSF ManagedBean में @ सत्रसैक्ड एनोटेशन का पूरा अर्थ समझना चाहूंगा। मुझे लगता है कि यह http सत्र से संबंधित है, लेकिन फिर भी, यह मेरे लिए बहुत स्पष्ट नहीं है जब यह शुरू होता है , जब यह समाप्त होता है और अगर यह बाधित हो हो सकता है अगर मैं बिना किसी गतिविधि के 2 घंटे के दौरान ब्राउज़र खोलता हूं क्या सत्र अभी भी खुला है? क्या ब्राउज़र टैब में एक सत्र साझा किया जाता है क्या फ़ायरफ़ॉक्स, आईई या सफारी में एक सत्र समान व्यवहार करता है? ... नहीं नहीं, सत्र बार-आउट अगर कोई गतिविधि नहीं है हाँ , सत्र ब्राउजर टैब में साझा किया जाता है हां, सत्र मुख्य रूप से एक सर्वर-साइड धारणा है, ब्राउज़र्स केवल पहचानने के लिए एक कुकी भेजते हैं सत्र तब शुरू होता है जब उपयोगकर्ता पहले पृष्ठ का अनुरोध करता है। सत्र का तरीका, जो कि पहले से बीन का संदर्भ देता है (मैं पूरी तरह से नहीं हूं) सत्र का स्कोप बीन्स (यदि मौजूद है) का @PostConstruct विधि लागू होती है यद्यपि) सत्र समाप्त होता है जब आप session.invalidate () को कॉल करते हैं या जब यह टाइम-आउट (टाइमआउट अवधि, य...

How do I Redirect a URL in PHP using .htaccess? -

How do I redirect a URL to PHP? If I use .htaccess to redirect, then this is asking for authentication (username and password). I want to redirect to a URL without any authentication. Is it possible in PHP? I do not want to redirect header or meta tag or window.location Is there any other way possible? My guess is that you probably copy / paste some code into .htaccess file with basic authentication? You only need one line in .htaccess 301 / oldpath redirect http: // sitecom / newpath

wpf - How can I set the keyboard focus to the content of a ContentPresenter when it changes? -

I have a content control in my view, which is the current item of my Voododal property dated in the property, exposed through current objects The items to be made have their own dataset. When a change to the CurrentItem property occurs, the appropriate DATA template is displayed for that item, as it should be. However, I can not find a way to set the keyboard focus on the content of the Datamapplet Even if I manually set the keyboard focus on the Datatomplate, if the current item property changes (and a new template How do I set keyboard focus for content? I believe that You can use the event on your own control or content page. It can be used at any time to create content / content templates / etc. Reversal will end. Alternatively, you can get a square from the content control, then, etc. You can override the methods, then you have to find the view tree below and set the focus You may have to use Dispatcher to delay the focus setting code.

How to efficiently write a large text file in C#? -

I am making a method in C # which generates a text file for one. The feed will contain 30,000 records and currently weighs up to ~ 7 MB of text file. Here is the code that I am currently using (some lines have been deleted for short). public static zero generateTextFile (string file path) {var sb = new string builder (1000); Sb.Append ("availability") attached ("\ t"). Sb.Append ("condition") attached ("\ t"). Sb.Append ("Description") Engage ("\ t"). For summarized // iterative code is hidden ... sb.Append (EnvironmentalNewLine); Var Items = Inventory Repos GetItemsForSale (); Foreign objects (different P items) {sb.Append ("In Stock"). Attached ("\ t"); . Sb.Append ("old") attached ("\ t"); Sb.Append (p.Description) .Append ("\ t"); For summarized // iterative code is hidden ... sb.AppendLine (); } {Result.Append ("write text file on disk") using the Stream...

html - How to decide meta keyword for Google Search Engine -

I have to decide on my website's meta keywords How many keywords do I use needed? My website is in Italian, should I use both English and Italian keywords? Thanks Note that Google

Can I prevent record deletions in Access? -

I have an access database with the table. Records are being lost in this table, and I do not know Where is the order coming from the order to be removed. Can I somehow protect the records so that nobody could remove them? You can present major obstacles, but I really believe that you should know exactly what is happening there.

php - Getting header response code -

This is part of a PHP script that I am putting together. Actually a domain ($ domain1) is defined in a form and a different message is displayed based on the response code from the server. However, I'm having problems to work on this 3-point response code I am interested in. Even I have so far: function get_http_response_code ($ domain1) {$ headers = get_headers ($ domain1); Return substrate ($ header [0], 9, 3); Forex Currency ($ get_http_response_code $ as Hoyhead) {if ($ gethead == 200) {echo "OKAY!"; } Else {echo "no!"; }}}} $ domain1 = 'http: // google Com '; Function get_http_response_code ($ domain1) {$ headers = get_headers ($ domain1); Return substrate ($ header [0], 9, 3); } $ Get_http_response_code = get_http_response_code ($ domain1); If ($ get_http_response_code == 200) {echo "OK!"; } Else {echo "no!"; }

sql server - Combine XML from T-SQL -

I have two separate table televisions and receivers which I am using XML path commands so that the XML is closed . My problem is that I want to add the output of my TV XML build with my receiver XML build to create an XML output. So something happens to me (which allows me to keep the TV and receiver different tags within the filter data route): & lt; Filter Data & gt; & Lt; TV & gt; & Lt; TV & gt; & Lt; Type & gt; LCD & lt; / Type & gt; & Lt; Brand & gt; Samsung & lt; / Brand & gt; & Lt; / TV & gt; & Lt; TV & gt; & Lt; Type & gt; LCD & lt; / Type & gt; & Lt; Brand & gt; Panasonic & lt; / Brand & gt; & Lt; / TV & gt; & Lt; / TV & gt; & Lt; Receiver & gt; & Lt; Receiver & gt; & Lt; Type & gt; Ground 7.1 & lt; / Type & gt; & Lt; Brand & gt; Onkyo & lt; / Brand & gt; & Lt; / Receiver & gt; & Lt; Receive...

c# - Casting an Anonymous type to a known type -

मेरे पास एक विधि है जिसमें निम्न लिनक को SQL कोड होता है: सार्वजनिक सूची & lt; L2SBusinessEntities.Report.MesReport & gt; GetListForReportTree (MESProductionDatabase डेटाबेस) {बाइट [] बाइटअरे = नया बाइट [1]; Var परिणाम = डेटाबेस में रिपोर्ट से। मेसरेपोर्ट का चयन करें नया {report.MesReportID, report.ParentID, report.ReportTitle, report.ReportName, report.DatabaseServer, report.DatabaseName, report.Login, ReportFile = byteArray}; वापसी (सूची & lt; L2SBusinessEntities.Report.MesReport & gt;) परिणाम; } मैं रिटर्न स्टेटमेंट में दिखाए गए प्रकार को 'परिणाम' डालने की कोशिश करने में त्रुटि कास्ट नहीं कर पा रहा हूं। क्या मुझे ऐसा करने में सक्षम होना चाहिए? एक L2SBusinessEntities.Report.MesReport इकाई के रूप में निम्नानुसार है: पूर्णांक MesReportID पूर्णांक ParentID स्ट्रिंग ReportTitle स्ट्रिंग ReportName स्ट्रिंग DatabaseServer स्ट्रिंग DatabaseName स्ट्रिंग लॉग इन बाइट [] ReportFile आपकी विधि को कास्टिंग की आवश्यकता नहीं है। आप अपनी वस्तुओं की सूची को...

css - Fixing odd spacing between divs on my site -

Hey, give me my & lt; Div & gt; There is a CSS problem with regard to the vacancy of >, If you point your browser to www.marioplanet.com, then you will see a strange place after your apple-themed navigation bar. I was thinking that anybody In addition, I believe that it is directly related to the NAV bar, because without the NAV bar, it is not anybody, Help me identify why this difference has been added, and how can I eliminate it. Spacing problem Thank you! this and & lt; Li id = "gn-support" & gt; & Lt; A & gt; & Lt; / A & gt; & Lt; / Li & gt;

asp.net mvc - RESTful Application Structure -

I'm new to the Restructured Architecture or at least it's new to use properly, I only have SOAP With real experience I have a problem in wrapping my head about some things. I know that there are other questions which are similar, but none, which I have found, satisfy my question satisfactorily. I am just starting this app, so I want to start it correctly and what I see is now a user registration screen. I have two verification calls which even before the registration form Collected. First of all, I have a verification call that checks to ensure that the email entered by the user is unique and second, I have a verification call that checks to ensure that the access code providing the customer is in the database is present. I have currently structured it as POST (which I believe should be GET ) and mine has an argument that defines What I want to do is therefore I have an argument string for the email like action = validateemail and value = email @ email.com And ...

c++ - Putting class static members definition into cpp file -- technical limitation? -

While coding in C ++, declaring some stable variable in my class, and seeing the compilation error in it One of my "favorite" annoyance I mean classic example: Test.h test of class {Personal: Stable Int M_StaticWara ; Int m_var; } Test.cpp Full test :: m_staticVar; It is more misleading in my eyes which is the syntax of this definition, you can not use the word 'stable' here (as used in CPP, steadily different meaning You do not know) (Knowledge stable working without leaving Vars) Why there is something different from the test class defined on Earth and why m_var is not. For your knowledge / opinion, why is he? I can think of only one reason and this is making life easier for Linker - that is why you can not use non-integral constants (some classes m_var = anything). But I do not like an idea of ​​bending language features, because some part of the compilation series can eat hard times ... Well, this is the way to work. You have declared th...

php - OpenFire: SHA-1 passwords without blowfish encryption -

I want to be able to create users who have a straight SHA-1 password, a bluffish, not special, just plain The old vanilla SHA-1 was the only way I was able to accomplish this so far to override DefaultUserProvider and to override createUser, making the following changes: if (! UsePlainPassword) { Try {encryptedPassword = StringUtils.hash (password.getBytes (), "SHA-1"); // Encrypted Password = AuthFactory.encryptPassword (password); // Set up the password so that it is included in that way. Password = null; } Capture (unsupported operation exception Uo) {// Password encryption may fail if in setup mode. // Therefore, use plain password}} Is there a better way of doing this? idea? suggestion? (The reason for this "requirement" is that I am trying to access the ofUser table via mod_auth_mysql so that everyone can get "Single Sign On" solution Various areas of my project, such as subclass.) My initial solution (provided in question) This fu...

objective c - NSTableView double-clicking/renaming -

By default, double click triggers in NSTableView. I instead trigger double click on my own custom code (such as to open a double-clicked file)? Anything else: How do I change the name in the firefire, where do you click one for the first time, and then click again and quickly move the mouse pointer away? Similarly, the name has changed in the searcher, I would prefer it in NSTableView. According to the document, NSTableView is selected to select a line once clicked, then Clicking the reader to behave like a finder by default (and neither this nor the searcher has to do something with the pointer moving forward quickly - try it out). To select once click again, then click again to start renaming. Double click (enough enough to double-click) and it handles the "double" action.

How can I reset the intellisense settings in VS 2008? -

I got a new installation of the VS 2008 standard and I have installed DevExpress DXPerience 2008 with CodeRush! And for some reason, I decided to work halfway. I have: class person {public string first name {get; Set; }} I can type: person p = new person (); P. ... and Intelligence will not show any of the members, unless I 'will not delete' And type it again then it will work because I always expect it. It is consistent between objects / projects / solutions. I am betting that it is VS. Or is coddling! Setting, but before trying to re-install coder before vS (takes a while). Please take a look at the following settings in your Visual Studio: Tools -> Options -> Text Editor -> C # -> General -> Statement Complete -> Auto List Member Tools -> Options -> Text Editor -> C # -> General - > Statements complete -> Parameter Information Tools -> Options -> Text Editor -> C # -> General -> IntelliSense -...

smartcard - Select EF on a smart card via its SFI -

Some smart cards provide the option of referencing the file by SFI (short file identifier), which is a 5-bit number. . On the contrary, a specific file identifier is 2 bytes long. I need some help with finding out how I do this, because I failed to get an answer inside. First, section 5.3.1.1 states (emphasis my) Selection by Small EF Identifier - A small EF identifier to any EF Can be referred. It consists of five bits which are not identical, i.e. any number from one to thirty. When used as a small EF identifier, the number refers to zero, i.e., 00000 in binary, current EF, at the MF level, number thirty, i.e., 11110 is binary, reserved (see 8.2.1.1). Short eas identifiers can not be used as paths or EF identifiers (e.g., in a SELECT command). My method of interpreting this sentence "can not use SFI to choose a file on a smart card" - which I do not expect. Next, section 7.1.1 specifies how SELECT APDU commands are used; Table 39 specifies the content o...

c# - How do I calculate someone's Age? -

संभव डुप्लिकेट: अगर मैं अपना जन्मदिन और आज की तिथि है, तो मैं किसी की उम्र C # में कैसे गणना करूं? यह प्रश्न का उत्तर दिया गया है:

firebird - Migration from Delphi BDE - IBO or FIBPlus? -

I would like to know better options of Delphi BDE. We use this huge application of Firebird 1.5 and BDE, and want to consider the following options: IBobject FIBPlus The migration will include a conversion in firebird 2.5 bid 3. Can I get your ideas on which one is better? Your input is highly appreciated. Thank you. I have never used IBObjects because I was very happy with FibPlus FibPlus Dataset Interesting " Separate transaction "feature that makes it possible to write applications that are similar to BDE applications but simultaneously use Firebird transactions more effectively and support other firebird specific features. I have written some initials that can be helpful as a starting point.

c++ - Receiving GLU_TESS_ERROR_5 from GLU Tesselator -

This is my problem I am blocking hundreds of verticals with complex, self intersection, multiplexing polygons, GLU testeller zero indicator 0x0000000 points Crashes with. Whenever I do not intersect myself to the polygon, it will never crash if it does not make a difference, it will never crash that what the circumstances are, I check in my application for the subway, I am sure That this is nothing from my side. I got an old version of GLU 1.2 from SGI and it never crashed, although the MESA and Windows versions were based on GLU 1.3. Not enough crashes in the debug mode. To get more information, I compiled the GLU of Mesa and found that the first one was unsuccessful, then if I comment on it, then there is an indicator which is set to zero from a function which fails in Molok is. I am very unsure about what to do, what can I do to try to solve this issue? Should I try to make a version of Mesa's GLU which works for me? I'm not sure how to proceed from here. After more de...

Load path in Rails? -

The guide in the Rails has a code to load this way. $ LOAD_PATH & lt; & Lt; Path ActiveSupport :: Dependencies.load_paths & lt; & Lt; Path ActiveSupport :: Dependencies.load_once_paths.delete (path) First I understand. To know where rabbi files are needed. But what does the second and third mean? Yes, the first line is for Ruby (and also $: ) The second one is similar to the first, but for ActiveSupport, load_once_paths an array of paths whereby the rails will automatically load only once. All elements of this array will also be in load_path. load_paths An array of extra paths to be included in the load path By default, all apps, labs, vendors and fake paths are included in this list. Therefore, if you need to reload the dependency on every new request,

Problem with VisualTreeHelper.HitTest in WPF -

I am trying to kill a bunch of UserControls on the canvas. I do not want to hit the hit test () through the visual tree completely, so I'm using filter callback to make sure that I'm only hit-testing usercontrol. My problem is that UserControl never hits, it should, but it is not. If I use filterbackbacks, then I come back that it does not hit anything if I let the hit test run through the visual tree, it leaves the user chart. Here are some code: & lt; Canvas X: Name = "Container" & gt; & Lt; UserControl & gt; & Lt; Grid & gt; & Lt; Rectangle / & gt; & Lt; / Grid & gt; & Lt; / UserControl & gt; & Lt; UserControl & gt; & Lt; Grid & gt; & Lt; Rectangle / & gt; & Lt; / Grid & gt; & Lt; / UserControl & gt; & Lt; / Canvas & gt; ... VisualTreeHelper.HitTest (Container, OnFilter, OnResult, MyPoint); ... Private Zero OnResult (dependent object o) {// I get a rectangle h...

regex - Help with Regular expression (PHP, preg_replace) -

I have to do a preg_replace on all pH tags in a string, as well as PHP tags. For example, if the content of the file was: Hey there! & Lt ;? Php some_stuff ()? & Gt; Whoa! All should be omitted: Hey there! Whoa! This is my code: $ file_contents = file_get_contents ('somefilename.php'); $ Regex = '# ([& lt ?? php] (. *) [\? & Gt;]) #E'; $ File_contents = preg_replace ($ regex, '& lt; Generated Content & gt; & gt;', $ file_contents); unsuccessful. My regular expression skills are poor, someone please fix my regex. Thank you. Try this regex: # & lt; \ *. *? \? & Gt; # Should work on a less tag (without 'php'). I think the main issue with your effort was that you need to avoid question marks with backslash, and that you were using the brackets of those classes where you should not be Was there. Square bracket means "Choose one of these letters".

c++ - Avira Antivirus detects the listen function as backdoor model -

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

upload - What is the Featured Image area for on the TwentyTen theme using WordPress? -

I am making a child topic in Wordpress using the TwentyTen theme as a parent. I saw under the Pages area in the Admin section, there is a 'featured image' area, but I do not know how that particular image is displayed on the page. What's for the featured image area? I would like to use that uploader ideally to place an image on a specified location on the page. In which file for I can get the code php code for the featured image area which is displayed in the pages in the admin area? I saw everyone through the work. I am assuming the php file is that it is a function in core files and it is being called in the functions.php file in the function theme, but I do not think where it is happening. Can somebody help me out? featured image sometimes " post thumbnails Where it is shown depends on your theme, but you can see it in use in this code: & lt ;? php // If this is a post or If there is a page, its thumbnail, and if it is large (is_singular () ...

Django blocktrans error -

I'm approaching the last step of a project and I went into some hiccup with Django. This is related to the {% blocktrans%} tag. How can I enable it to be fully functional in my app, if I currently me TemplateSyntaxError message I have TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.i18n", ... ...) Any help would be appreciated. For me it was like (Windows + Pygon 2.6 + Dzego 1.2.1) The result of TemplateSyntaxError will be: {% load i18n%} {% blocktrans%} My name {{user.firstname} } {% Endblocktrans%} will work: {% load i18n%} {% blockrans user.firstname Hmpf%} as my name {{HMPF}} {% Endblocktrans%}

c# - Less than or Equal Date should not allow to enter -

Using C # and so on; MySQL When I get the date of input in the text box, then it should be compared with the date from the table, if it is equal, then it should give an error message, allowing it more than just the date For example Table 1 ID Date 001 2010-08-05 002 2010-08-02 .... When I enter the date in the text box - 2010-08-04, it should be compared with the date in Table 1, if it is from Table 1 to Max (Date) Handlebar or less, then throw him an error message, otherwise it should be allowed to insert a date. New to mysql & amp; C #, how it works in C # & amp; MySQL Some code support is required. I will run a query for the first time and bring the maximum date to the application on my front ... Then depending on whether the application is a web application or a Windows application, I will use this value in comparison to the values ​​of Valuerator (ASP.NET) or textbox_washing to compare values ​​... If you are not familiar with how to compare valuer o...

how to use iTextSharp with existing wpf document? -

I have an existing wpf document, how do I get a pdf from iTextSharp from it? There is an easy way, which is easy, but perhaps in the most effective way, an image in a WPF document Render and then embed the image into a PDF using ITextSharp. I have successfully done it in the first place Initially, I tried to convert control primitives into PDF counterparts, but it proved to be very difficult.

svn - how to work with Subversion -

I have downloaded the callbental subversion for Windows and Turtle SVN I have a repository with Tortoise SNN But when trying to open the repo browser and give the path as svn: /// It does not point to my repository I have followed the indicated steps. Any other useful My advice is You do not need to actually configure the stuff with the command line and the text editor that you installed.

sql server ce - how to combine 2 tables to 1 table in sqlCE? -

I have two tables that have the same field Adding 2 tables to 1 table How to do it in SQLite? Thanks in advance a INSERT ... (SELECT ...) Enter all the data from the first by using the query Finally, if necessary, you can add a column to flag the original table that is of the data. Afterwards, remove the second table.

iphone - creating integer array -

Hello, I'm a new iPhone programmer. I know that we can create an array of integers, array of stars ... etc. Like different C ++ if yes then how .... I have read about the example given on this site, but this is the style of array .... please reply NSArray is the standard array square in cocoa / cocoa touch. It contains objects, but not priorities. You can wrap an integer by wrapping it with an object in an array with the NSNumber object: NSNumber * myInt = [NSNumber NumberHome: 1] ; Then you can store it in an array: NSArray * myArray = [NSArray arrayWithObject: myInt];

Testing Silent Post with Authorize.net -

I currently have an authorize.net application using ARB API. I have everything working, I believe how it should be done, but I would really like to receive a silent post back from the authorize.net test server (test.authorize.net), where my account is created. I have Test Mode closed, and there is no Debug on Transaction. With it, I have already written a page, where I can simulate a post, but I still have to see one. Is a membership prepared, or when the card is charged? I have read many items, which states that in various test modes, silent posts are not sent. Is there any way to apply a transaction to posting a silent while using ARB on trial? P> Thank you, Eric You test silence post through the ethernet without running live transactions can not do . However it is very easy to test your silent post script yourself. Posting all the silent posting transaction data which is similar to an AIM API response (with one exception: you are also getting membership ID with AR...

asp.net - How to create Custom Data Annotation Validators -

Want to create custom data annotation verification. Are there useful guides / samples about creating? First of all: string length with minimal and maximum length. I know. NET 4 can do this, but if this is possible, then being able to define the minimum length (at least x characters), the maximum length only (up to X characters), or both (between X and Y) In). Secondly: Validation using the modulus arithmetic: - If the number is a valid length, then I'm modulus 11 algorithm (I javascript, so I think it would be just a simple porting?) Update: The second problem solved, copying on javascript implementation and some tweaks, so it does not require a solution for it. To create a custom data annotation verifier, follow these Gudelines: Your class to system ComponentModel.Data Annotation. The Legacy Attribute is inherited from the class. Apply override bool IsValid (object value) method and validation logic inside it. That's it. Important Caution Somet...

php - How to trim a Base-64 encoded string? -

I'm not too much a PHP expert; I am encoding a URL with base64_encode I'm quite weird I get very long encoded strings with letters as I want. Is there no way to trim the long line of such characters, say it 10 or 15 characters, can I explain it again later? I know that is trim () but what I really do not want is I want to have a long encoded string that I want to reduce and then decode it again Want to do Any thoughts? If you do an encoded physically small If you want, it is not possible to "shorten any string". String (with only the end result is only a part of that string), apply not to substr () on the encoded version: decoding it first Another option is minimize it is string it may be Reduce to some extent: Your benefits may vary depending on it, however: Compression rate will depend on which type of work you have The data with little input string, the result may be even larger than the original. If you want to reuse a vari...

apache - Redirect site with .htaccess but exclude one folder -

I want to redirect 301 to a whole website, but to include every folder in a folder called 'upload' Exists in the directory. Can we circumvent it? I googled for this, but did not come up with anything, or I do not think what I saw was right. Try this rule: RewriteRule overwrite engine! ^ This rule matches any URL path ( ) starts with either / upload or / upload / (leading / path is missing in the format due to the prefix removal When used in .htaccess files) and example.com on the related path to the request.

c# - WPF: Control Visibility from Database / Prerender Hook -

We have an odd need: Visibility of any control in our WPF-application is operated by the database table. This means that we have a table that stores the name of the element and its visibility. Now I am looking for a great way to implement this feature on the client side. I can create my own UserControl and get it from everywhere, provides an initialized component template method. But what if someone programmed more hair control? I do not want to know about my control at all about this mechanism. I want to hook / block in a certain point (pre-control-rendering) and I want to adjust the visibility of control according to the database. Is this possible? And if not, how do you design it? So what I have done here: I inherited user typing and Event for the load event, put the check in the driver. Then I get my controls from my custom control, it works very well. FindName () Implementation Framework not found for any reason which I do not know, although their names ar...