Posts

Showing posts from July, 2012

impersonation - Run Code as a different user (C#) -

Is there a way to tell my code to run as a different user? I have to call NetUserSetInfo through a PInvoke and I would call it as a separate user, is there any way to do this? For cloning it is necessary to call some native API (i.e., logoner), perhaps 3 Not worth the posting page. There is a complete working sample on this page: Note that there are significant security reasons for cloning. Make sure you follow best practices.

while loop - Can I damage the system by running time.sleep() with this newbie code in Python? -

I'm sure there is a better way to do this, but I'm a newbie so find out that I did the only way. The thing is, I have a script that updates a text file with the latest posts from RSS feeds (I got some help from you to know this). But I want to automate this script, so I created it: import time import os seconds = 3600 kjor = 'python vg.py' time.sleep (seconds) os.system ( Kjor) Time.sleep (seconds) os.system (kjor) time.sleep (seconds) os.system (kjor) I continued with those 24x down copy I know That could possibly be better with some loop (while?), But I'm afraid that I do not have much knowledge in that area. My question, though, is as follows: If the system is damaged in any way, should I give it for longer periods of time? Your question to answer, no, it will not hurt anything while time is over. Sleeping, the program will take very little processing power and the rest of the system can run normally. Now, for your looping problem, if you want ...

transactions - EDI X12 standard - Where can I find a definition for this? -

I have a project that needs to be exported in the EDI X12 standard (837p) format. Although I have been successful in finding some samples which are useful, I can not find anything that defines what are the possible "segments" and what they mean. The previous developer has done a lot of work, but I have no way of knowing that it is correct. Should I take anything, or should I look for some third part EDI plug-in? Finally, if so, is there any good people who would work with .NET or COM? The application is actually built in the reach, so it will be the easiest and cheapest way. The implementation guide used by X12 standards is used for subsidy by CMS, but It ended in April 2006 A PDF version of the implementation guide is $ 175. If you decide to download it, make sure that you obtain a combined version, which includes the original standards and attachments, the current version 4010A, version 5010 will be required January 1, 2012. I do not know what your condition ...

c - Displaying standard error messages -

I'm just testing a small program that I want to test. I am thinking that there is a way to use stderr to display a real error. For example, if the file does not exist, there is a standard error that I can display. I am using stderr, and I thought using it, what can I do to see the real error. For example. If the file does not exit I hope that I am clear from my question. Many thanks for any advice. #include & lt; Stdio.h & gt; #include & lt; String.h & gt; Int main (zero) {four buffers [100] = {'\ 0'}; / * Declared and clean buffer * / file * FP; Int len_of_buff = 0; Fp = fopen ("licenseURL.txt", "r"); If (fp == NULL) {fprintf (stderr, "There was an error opening a file ???"); Exit (1); } Fgets (buffer, size (buffer), FP); Len_of_buff = strlen (buffer); Buffer [len_of_buff + 1] = '\ 0'; / * Null terminate * / printf ("URL: [% s] \ n", buffer); Fclose (fp); } Call your fprintf (stderr, ....

pdf - how to get pdfcrop2 script -

I am very interested in harvesting PDFs, * and I have a tool to do that script of IOrbodic I Pdfcrop.pl I want to try, but (only the source of information about pdfcrop2 ) are only patches of an older version pdfcrop.pl , which I can not find a copy of it, does anyone know that I either of pdfcrop2 or pdfcrop.pl version 1.5 of A I can obtain a copy? Copy of Pdfcrop2, I would be happy to know about any other device (preferably free) which can be used for pdf crops, except for the crop is great for doing anything. Edit: Full pdfcrop2 is available in their svn repo: Basic Answer . pdfcrop 1.5 was shipped with Debian and Ubuntu; I've temporarily posted a copy for you ...

SharePoint Designer Workflows - tips and resources? -

I am working on the revision of some existing SPD WF and are strangeling with some concepts in which two Are not showing the same output as WF is to produce the same output. Is any of you who has worked with SharePoint Designer / Workflows and knows any good resources (more detailed than MSDN introduction) or tips on the case. For debugging and how to monitor settings and to connect information to multiple workflows ... In other words: your best SPD WF link & amp; Tips: o) I am not able to choose another solution at this time, so any suggestions are welcome. I have a USPJ special issue on SharePoint Designer Workflows. It is not bad, but there More goods are: o) It appears by your question that you hit the boundaries of those solutions Is designed to design SharePoint Designer. Due to not being a wizard approach is not really debugging support, although in reality we know it will really help! Likewise, the limitations are being added by adding workflows and I will ...

objective c - NSOutlineView and NSTreeController example -

Please send some links with binding without using core data. In addition to documents, Apple's sample should help you understand things better:

What's your favorite mootools widgets and plugin -

I am still new with Mootools. I gather information about good and worth using the Mootools plugin around the net. I am trying to do Please list your favorite Mootools widget and plug-in. Post a widget and a plugin per post just because others vote can do. Very useful stuff (although I have used FormValidator only so far).

Tracing Castle Windsor Resolution of Type -

What is a way to find out what Castle Windsor is doing while doing a type of solution? I am a traceource name, or log4net (etc.) looking for the name of the logger name if it is not in existence, where to provide the own logging code, the best place to hook in the structure is? The reason is that we have deployed the exact build / configuration of our software on two different virtual servers (both of which are made from the same image of the server), and one of them "works" and Other does not do On unsuccessful deployment, our own logs show that there is a component that was being injected injected for another. On the other machine, the logs show that everything is healthy. Why is this happening to me, and to do this, the castle container had to find out how to solve the code. EDIT: Thank you, Castle Windsor Release 2.0 on .NET 3.5 SP1 Thanks. You can try the dependency resolving event of the kernel: hooking up the container. Kernel Dependency Resol...

Why are these Java enums changing values? -

I have a problem creating a list of objects based on a condition at enum . It seems that after completing the list, every item in the list is equal to the last item. This is a classic matter of different contexts pointing to the same object, but I do not know how to avoid it: While I have done everything while maintaining readability, The number of things I keep: public square fu (digit [] array = new issue [2]; ArrayList & lt; foo> foozlets; foo () {array [0] = Digit Zero; Fuzzlets = New Arreelist & lt; Foo & gt; ();} Foo (Foo old, numeral number) {this.array = old.array; \\ This line is a problem, Or array should be called? Array [1] = number;} public static zero main (string [] args) {Foo f = new Foo (); System.out.println ("initial fu:"); println (f); f .listFoozlets ();} zero list for Foozlets () (for digit: digit.values ​​()) {if (k == digit. TWO || k == digit.five) {foozlets.add (new fu ( This, K)); System.out.println ("** Foozlet is bei...

Are there any Non GPL Open Source PGP libraries for .NET out there -

I am looking for a free, open source API for encrypting and decrypting PGP files. I want to use it in closed source products, as well as open source, so it has to be a license other than GPL. is a library which is very useful for performing encryption tasks. Looking for Bouncycastle + PGP changes this blog post, which looks very useful. It is in Java, but the C # port is similar to the Java code:

sql - What does a transaction around a single statement do? -

I understand how a transaction might be useful for coordinating a pair of updates. What I do not understand is wrapping a single statement in the transaction, which is 90% of what I have ever seen. In fact, real life code is more common in my experience to find a series of all logical transactions wrapped in my own transactions, but not wrapped in the entire transaction. Does MS-SQL, whether single selection in the transaction, single updates, single inserts or single delays wrap up? I suspect that this is superstitious programming. It does not do anything like all individual SQL statements, (rare logs like bulk inserts with no logs) Or trout table) are automatically "in one transaction", whether you explicitly say so or not (even if they insert millions of rows, update, or delete). EDIT: Depending on the comments of @Filip given below ... in current versions of SQL Server, even in the bulk insertion and trunk table transaction log some Write the data, althou...

c - How to get the absolute path of a file programmatically with out realpath() under linux? -

I know that it is possible to get a full path of the file with the realpath () function. However, according to the Buj section, the manpage, there are some problems in its implementation. The details are as follows: BUGS Avoid using this function. It is broken by design since then (unless non-standard solutions are used) Do not use the null attribute, it is impossible to determine the appropriate size for the output buffer, resolved_path. According to POSIX, the size buffer PATH_MAX is adequate, but PATH_MAX should not be defined deficient, and must be achieved using path conf (3). And asking the path conf (3) does not really help, because on one side POSIX warns that the result of path config (3) may be large and inappropriate for the modolding modulation. And on the other side, for the path conf (3) 1- can indicate that PATH_MAX is not bound. There is a buffer overflow in libc4 and libc5 implementation (fixed in libc-5.4.13). In this way, set-user-id programs such as Mount...

sql - Incremental count column based on another column contents -

I have to fill one column with the calculation to run on the basis of the second column content. The table is like this: counting seq_num 1 123-456-789 1 123-456-780 1 123-456- 990 2 123-456-78 9 2 123-456-990 So, as the seq_num column changes, the counter relies on '1' and repeats as the column, the counter increase from 1 This is using SQL2000, and the seq_num field is varchar. Any thoughts? I have seen something like this but there is no luck yet. Thanks in advance If you will enter , You can use a subquery: Include in the table (count, seq_num) value ((Select from the table Select number (*) + 1 where seq_num = @seq) , @ Seq) Otherwise, you will need a date there or there is a way to tell how to decide what was earlier: update table T calculation = (selectable number (*) + 1 table where t2.seq_num = the T2 table.seq_num and t2.insertdate & lt; table.insertdate)

sql - Updating a Type-2 Dimension with the MERGE command -

I'm managing a data warehouse. I have several dimension tables, most of which are type-2 and some type-1. How can I use MERGE to maintain my Type-1 dimension tables. I'm stumped on how to type -2 dimension tables. How do I do both, from ENDDATE update and an insert merge command? Using merge , unfortunately, one condition is that you have multiple Do not apply actions, or you operate several times. One line Then, what I use is a INSERT INTO wrapping up the merge : Insert check DimTable Selection ID, Name, StartDate, Null as EndDate (tgt.id = src.id and Tgt.enddate src on DimTable merge as TGT is used as TgT when the time is set to set tgt.enddate = src. Match not matching in startdate (ID, name, start-up) Val UES (src.id, src.name, src.startdate) Action, src.id, src.Name, src.StartDate) Where a.Action = 'Output $' as the 'Update' key OUTPUT will redirect to the rows in the block so you know that all What a great attribute them, in ...

http - Validate Origin of FORM POST to ensure it came from same server/app -

I know that to get the origin of a source source, to obtain a platform / language agnostic solution is from the source, i.e. . Page1.aspx is posting to the page 2.php within the same web site Specifically, what I am trying to do is to prevent duplication of the request. Use a hidden field in your form, in which your app is generated User Sessions Store tokens in when the form is submitted, then your app will check that the value of the hidden field is the same as the value stored in the user session. If it is equal, then you know where the submit form comes from is expected to come.

java - How to debug/log/trace an applet loading problem? -

Recently, two of our customers have reported the problem with our applet, seeing the Java Plugin Console, it is full of ClassNotFoundException So none of our code is executed. I am able to reproduce the stack trace by using a virtual PC image with 0 spaces on the disk, but the problem goes away because I restore some disk space, and the user will Explains that their disks are not complete; They are capable of creating new files. Our applet requires Java 6, and the problem is shown with Zare's updates 1, 10 and 14. We have different browsers (IE and Firefox) to clean browsers and Java caches. Have tried too ... What is JVM or how can I find out to load Ebat? P> I think the problem is on some security instructions on Windows so I'm using Sysinternal's process monitor to log the activity but I do not know where it is from. Java cache is most messed up Open Java in Control Panel and get rid of all temporary files See if it goes away to see if it goes away. ...

qt - Finding a 3rd party QWidget with injected code & QWidget::find(hwnd) -

I have a QT DLL, I access the library using third-party windows: if DLL (path, zero, zero, zero, TRUE, CREATE_DEFAULT_ERROR_MODE | CREATE_SUSPENDED, NULL, NULL, & PI, "C: \ program files \\\" with Microsoft \ Bin \\ detoured.dll "," C: \\ user \\ Dave \\ document \\ Visual Studio 2008 \\ projects \\ xor \ debug \ xor dail \ ", tap)) and then I have set the system-wide hook to block window creation: HHOOK h_hook = :: SetWindowsHookEx (WH_CBT, (HOOKPROC) CBTProc, Status :: GetInstance) - & gt; Mill Ecore Instance (), 0); Where XOR is the name of my program, and the status :: getInstance () is a singleton where I have globals. In my CBT callback, I want to stop all the windows that are QWidgets: hwn hwnd = FindWindow (L "QWidget", NULL); Which works well, since I get the related HWND (I check with Spy ++), I want to get an indicator on QWidget, so I can use its functions: QWidget * q = QWidget :: Search (HWD); But he...

jQuery DOCTYPE CSS bug with IE 6 & 7 - Quirks Mode -

OK strange behavior when it should work: The problem is whether I do not declare a declaimer CSS works in IE 6 & amp; 7 But if I declare DOCTYPE then it does not work. Why? jQuery: $ ('tr: first-hair'). Children () CSS '(' width ': settings.minWidth +' Px ',' height ': settings.tableHeaderHeight +' px ',' overflow ':' hidden ',' white-space ':' nowrap ',' color ':' Blue '}); - Please enable Firefox and IE 6 & amp; 7 To see table headers difference - Please enable Firefox and IE6 & amp; 7 to see table headers difference I'm declaring DOCTYPE: Any work around? Tip: Solution, Yeh !!! jQuery // This table adds a div tag around the header text / - Space bug in IE white standard mode $ ('table.className tr th') . WrapInner ("& lt; div class = 'ie_correct_header_whitespace' & gt; & lt; / div & gt;"); css .iffi...

.net - Generating Service Contract from a WSDL -

I have a WSDL which I need to generate a service-communication (Operation Contract, Data Contract) ... I have found a way to do this but it does not seem like how to do it in WCF. I have tried to turn svcutil AuthPartnerWSDL.wsdl / i / messagecraft / TCV: version 35 but the resultant The interface does not deserialize incoming calls, so all request parameters for service implementation are null WCF First tool contract

asp.net - Maximizing parallel downloads for website -

I am reading articles about how to speed up websites through the service of static content from the cookies domain. We have an ASP.NET website containing links to images / CSS / JS & lt; Script type = "text / javascript" src = "/ js / something.js" & gt; & Lt; / Script & gt; I am testing static content filters from the article and it seems that working well for situations like above, however, we also have many CSS files like: background-image: url (/images/something.jpg) Static content filter will not work for these conditions because our many image location css Defined in files, is there a good way to work on this? Every time we have the project loaded on local development machines, we clearly want all the files to serve from the local host, so we can not do strict coding at all these places. Is there any other solution or can we change this to change this work? You will need to change your CSS files You may need to create a...

c# - HttpHandlers and HttpHandlerFactories -

I would like to root incoming requests for various resources, such as some returned files such as CSS, the responses generated by other servers Returns, and others are being redirected to ASPX pages for AJAX functionality. All configurations use an HTTPMDUUD to remotely clear all requests for a handler, where the URL is parsed and sent, as an entry point for the server. I am thinking that what would be the best configuration to handle the requests, should I repmittate the handlerfactor from HTTMDUD, where I parse the URL, and the appropriate handler based on that URL Root or am I trying to set it to everyone in web.config? In addition to how can I request on the ASPX page from HTTPAndLiter and HTThindLftCtp? If the rules of routing requests for different handlers are very simple (for example ". Handler xyz" ) Surely you web. Built-in with config. The NET system should be used - there is no reason to change the wheel again here. If the argument is possibly more ...

children - Use jQuery to find out how many list items are in an unordered list -

I am creating a tabbed content interface. I want to add a tab via jQuery to control the panel. The only need for the jQuery plugin to work is that the same amount of panels on the tab has the same amount (the number of panels is not always consistent) I need to ask how many list items are in my UL panels and in a variable Is stored, so I can create a loop with the variable that does it to add to my list items in ul.tabs. Access to server-side scripts, so there is no possibility to modify PHP. var calculation = $ ("ul.panels li"). Shape ();

c - mqueue.h not found -

In one of my applications, I am using "mqueue.h". I was able to compile and execute it. But one of our clients has issued a code to me, like something is complaining. * mqueue.h did not get found * Error message though In my Linux PC, it is available in / usr / include. Sorry to ask such trivial questions. , Centos, and other RPM based distros: Suse:

c# - CallNamedPipe & NamedPipeServerStream, access denied? -

I'm trying to do the IPC between a managed and unmanaged process. I have settled on designated pipes. I'm spinning a thread in managed code: using (NamedPipeServerStream stream = new Nampeepsserwarth stream ( "Maipip" PipeDirection.In)) {while (True) {stream.WaitForConnection (); Stream Reader (buffer, 0, size); // handle the buffer values}} I have been using the unmanaged side: CallNamedPipe (TEXT ( "\\\\. \\ "pipe fails with \\ Maipip"), nULL, 0, Peedata, Detasijh, tap, Anmpiwaiwaitiawaiaaitiafariaaraf); However, the GetLastError the CallNamedPipe 5 (Access denied). no Why even consider? I would guess that since you are in the process under two different accounts You Namespipstream Using the Constructor, which uses default protection, the other user does not have access to it, it can be resolved by using Constructor which takes a PipeSecurity Instance. Then just tell other account access clearly. edit: I noticed that you made ...

tfs - Visual Studio Team System beneficial for Solo Dev -

I'm the only developer in a relatively small shop that does a lot of custom apps of all types. Besides, in addition to using the system system, for some reason, what's the contrary to this? We are currently heavily dependent on VS 2008 Pro, Visual Source Safe. I can actually use a better source control and project management system and I am wondering if there is a reason why I should not use them. Thoughts? Thank you! TFS version does not shine as control, but integrated VCS + bug tracker + build system

regex - Php: Find first img or object tag in string -

फ़ंक्शन get_first_image () {global $ post, $ posts; $ First_img = ''; ob_start (); ob_end_clean (); $ आउटपुट = प्रीग_मैच_ल ('/ & lt; img। + Src = [\' "] ([^ \ '"] +) [\' "]। * & Gt; / i ', $ post- & gt; पोस्ट_ सामग्री, $ मिलान ); Preg_match_all ('/ & lt; ऑब्जेक्ट [0- 9 ए-जेड _? * = \ ": \ - \ / \। # \, & Lt; & gt; \\ n \\ r \\ t] + & lt; \ / ऑब्जेक्ट & gt; / smi ', $ post- & gt; पोस्ट_साइंट, $ मैचों); $ First_img = $ मिलान [1] [0]; यदि (खाली ($ first_img)) {// एक डिफ़ॉल्ट छवि परिभाषित करता है $ mediaSearch = preg_match_all ('/ & lt; ऑब्जेक्ट [0-9 a-z _? * = \ ": \ - \ / \। # \, & Lt; & gt ; \\ n \\ r \\ t] + & lt; \ / object & gt; / smi ', $ post- & gt; पोस्ट_content, $ matches2); $ first_media = $ matches2 [1] [0]; $ first_img = "/ छवियों / डिफ़ॉल्ट.jpg ";} यदि (! खाली ($ first_img)) {$ result =" & lt; div class = \ "alignleft \...

php - Difference between getmypid() and posix_getpid() -

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

Macro to delete headings in Word -

I have a WORD document that has many H1 headings, I want a macro that gives me a specific H1 heading Allow the content to be removed until the next H1 heading - Essentially removing the H1 section, so I would like to remove from H2 heading to the next H1 or H2 heading. You can define the style of paragraph using oParagraph.Style (where oParagraph is a paragraph object) Are there. So, you can do something like this: Paragraph set paragraph of the oSTartHeading paragraph = selection. Paragraph (1) If oSTartHeadingParagraph.Style & lt; & Gt; "Heading 1" then MSBBC "Please select the heading 1 paragraph for the section that you want to delete." Paragraph sets are used in the form of OperaGraph = OstaatHiding paragraphs, while OperaGraph = ostiming paragraphs, while osthastiding paragraphs. There is nothing next if osthastiding paragraphs next. Style = "heading 1" then exit or otherwise exit the paragraph. Next. Range. Finish the dip if loop...

database - Using ADODBAPI-Python -

Can you list some resources that use ADODBAPI in a unique way? Can be accessed with ADO. The AD object is acceptable through COM objects. You can take a look at this page which will provide a lot of information:

c# - Why doesn't IEnumerable<T>.Max constrain T to be IComparable? -

अगर कोई एमएक्स () विस्तार विधि को एक IEnumerable & lt; T & gt; पर कॉल करता है। , और भीतर वाले ऑब्जेक्ट्स को IComparable को लागू नहीं करते हैं, एक हो जाता है System.ArgumentException: कम से कम एक ऑब्जेक्ट को IComparable को लागू करना चाहिए। क्यों अधिकतम न करें और इसी तरह के तरीकों को T को कार्यान्वित करने के लिए IComparable को रोक दें, ताकि यह समस्या समय के बजाय संकलन समय पर पकड़ी जा सके? तुलना ... मजेदार हैं सबसे पहले, आपको IComparable & lt; T & gt; या IComparable का विकल्प मिलता है - जो आप चुनेंगे? वर्तमान में ( comparer & lt; T & gt; डिफॉल्ट के माध्यम से) यह दोनों का समर्थन करता है, लेकिन "यह या कोई भी" सामान्य बाधा नहीं है। नल योग्य & lt; T & gt; का मुद्दा; इसने "उठाया" तुलना की है, इसलिए यह तुलनीय है या नहीं यह T पर निर्भर करता है; लेकिन फिर से, तुलनार & lt; T & gt; डीफ़ॉल्ट हमारे लिए इस के साथ ( नल योग्य & lt; T & gt; लागू नहीं IComparable और न ही IComparable & lt; T...

audio - Recording from microphone from within the browser using flex or processing -

A group of friends are working on a small game that will listen to the microphone as part of the conversation. An FFT display on this microphone data We want to know that anyone has succeeded in: Recording from the microphone using a web app In the case of Flex, "according to sound data from the microphone ... not pass the global soundometer object, SoundMixer.computeSpectrum () The method will not return data from those sources " Answer: Your answer to the footnote type answered. :) No, reading raw bytes from the microphone is not possible from the client side. It is possible that Adobe will implement it in Flash 11, but do not keep your breath for it. If you set up a Flash Server, like you can read the raw stream on the backend and send the FFT data back to the AMF client. It is possible to actually do this with very little latency, although it may still be too much depending on the nature of your application. There are many examples on the Red5 page abo...

Cross site data wss 3.0 sharepoint -

I am trying to create a web part that will list all the items from the site collection i.e. From every web site's document library. I am using the following code. SPWeb web = SPContext.Current.Web; SPSiteDataQuery query = new SPSiteDataQuery (); // Ask for all the lists created from the Document Library template. Query.Lists = "& lt; Lists ServerTemplate = \" 101 \ "/ & gt;"; // Find the field named Query.ViewFields = "FieldRef name = \" title \ "/>; // Set sort order Query.query = "& lt; OrderBy>" + "FieldRef name = \" created \ "ascending = \" false \ "/> + "& Lt; / OrderBy>"; // Query.Webs = "website scope = \" SiteCollection \ "/>"; "; query all websites in this site collection. Datatable DT = web.GetSiteData (query); Datavive DV = New DataView (DT); My site collection contains nested sub-sites and workspace with different document li...

java - JBoss 4.x not deploying src folder to war -

I am currently working on a web app that was previously executed and fixed but after recent changes JBoss Will not deploy a full war file I was hoping someone would get some advice about deciding here. Jebus deploys everything in the web-INF and Meta-INF but nothing is being posted in the class folder. I am trying to deploy as an explosion. War: Meta-INF - Clear. MF Web-NF-Class ---- Meta-INF ------ Exifer -------- services.xml --lib ----- Many jars - Ibm-Web-BD. Xmi - album-web-extex Xmi - jaboos-web.xml -lag4j.properties - -web.xml --xfire-servlet.xml Edit: Sorry yes I mean class folder. Take a look at this:

How to export text data from a SQL Server table? -

I am trying to use a MS SQL Server 2005 Import / Export tool to export a table so that I can import it into another database, so there is one lesson in the column for archival, so if I export as a comma-delimited one, when I try to import it into the collection table, in that field Work properly for rows with comma does not. Which option should I choose to ensure that my import will work properly? I never use a comma delimiter, try to use the customer it requires. If needed, as a delimiter, the YOU can use the text qualifier.

objective c - UITableViewCell not moving up and down -

Hello Everyone Everyone knows whether this is possible or is a function or feature of UITableviewcells that make them up or down (When you scroll with the mouse) just like when some buttons stick to the screen I have spoken very soon;) It has been set [[Self tableview] setcroll is enabled: No]

linq - Keeping abreast with technology -

I know that this is not a technical question, but it is something that believes that the technology community is the best Can be answered. I've been in the software development for ~ 2 years, but most of the time, learning along with it requires experience. A friend recently told me how to get a strong conviction about technology , So that the new technology coming up every day can be easily adapted. I have no answer to answer how it is necessary to learn his question as my way of coming to this position as you need If you were getting today in Microsoft technologies, How to suggest moving forward? Where will they start, and how will they move forward? Seeing your knowledge every day (link, Silverlight, Entity Framework, MVC framework and ever expanding list) to be able to expand your new knowledge. Actually I think my question is a mixture of both "how to become a better programmer" and how to reach "next level" in technology (where you are not an inter...

activerecord - Bidirectional graph in rails -

I have a simple model "match" that should save two-directional links between two objects). Class matches & lt; ActiveRecord :: Base is_to: obj1 ,: class_name = & gt; "MyMold" ,: Foreign_Key => : Obj1_id belongs_to: obj2 ,: class_name = & gt; "MyMold" ,: Foreign_Key => : Obj2_id ... end The problem I have is that for every bi-directional matching, I find that I get two database entries i like 1: obj1 -> obj2, 2: obj2 -> obj1 How can I use validates_uniqueness_of to avoid here? I tried validates_uniqueness_of: obj1_id ,: scope = & gt; : Obj2_id validates_uniqueness_of: obj2_id,: scope = & gt; : Obj1_id but that was not working Validations_Infinity_of: obj1_id ,: scope = & gt; : Obj2_id DEF valid if search ("before, conditions:";: obj1 = & gt; obj2,: obj2 = & gt; obj1}) errors.add_to_base ("already exists") end of end Add some unique database index to pretty ugly. ...

php - preg_replace - leaving in unwanted characters -

I have a string: $ string = "Hello World!"; I want to convert it into a URL-friendly tag, and I have developed a function to do this: function strip junk ($ string ) {$ String = str_replace ("", "-", $ string); $ String = preg_replace ("/ [^ a-zA-Z] \ s /", "", $ string); $ String = Stroglager ($ string); Return $ string; } However, when I run my $ string from above, I get the following: $ string = "Hello world!"; It seems that my preg_replace is slipped through the characters, even if I understand what I think, they should not be. It should be read like this: $ string = "hello-world"; What's going on here? (It should be a smooth smooth lemon scsi!) Edit 1 : I did not know that regular expression was the initial stuff, but whatever else, \ Removing in the string does not result in desired results. The desired result is: All locations are converted to dashes. All remaining...

Can I install IIS 6 or 7 on a Windows XP machine? -

I've heard that this is not possible because you need to install Windows Server OS, but it seems ridiculous because How do you establish a local development environment? Anyway, curious if it is possible if it is possible. Existing Windows Server OS ', IIS6 requires 64-bit and IIS7 Vista. It also says that 64-bit WinXP Pro comes with IIS6.

iphone - How can I alter the values of an transform? -

For example, I can access them like this: self Layer.transform M32 but I can not give any value for it, like self.layer.transform.m32 = 0.3f; It tells invalid work but should not it really work? Straight CATransform3D {CGFloat m11, m12, m13, m14; CGFloat M21, M22, M23, M24; CGFloat M31, M32, M33, M34; CGFloat m41, m42, m 43, m44; }; At least Xcode recognizes all these areas in the matrix. You can access the property called "conversion" (CALayer class), meaning call setter function CATransform3D logic type with. So you can not directly access members of the CATransform3D structure. You may need to initialize the temporary variable (CATransform3D type) then specify it completely for the property. Any property that you seek to reach in this way, For example: view .frame.origin.x = 0; // will be ** ** ** UIView * work for the view worked sample (via floating variable): CATransform3D temp = Self.layer.transform; // Temp.m32 = 0.3f making...

javascript - What is the maximum value for a compound CouchDB key? -

I am using a common trick to create an engaging scene: // A customer has several orders; Show them in a scene together: Function (Doctor) {if (Doctor tape == "Customer") {emit ([doc._id, 0], doc); } And if (Doctor type == "order") {emit ([doc.customer_id, 1], doctor); }} I know that I get a single customer and all related commands s: to get the following I can use the query. ? Startkey = ["some_customer_id"] and endki = ["some_customer_id", 2] but now I have a query like very near my view code That's what I call my own " 2 " more clearly, "I want everything to be connected to this customer"? I think I have seen ? Startkey = ["some_customer_id"] and endki = ["some_customer_id", {}} / P> : query ["foo", "bar"> startkey = ["foo"] and endki = ["foo", {}] ] and ["foo", ["bar", "baz"]] ...

iphone - Weird Switch error in Obj-C -

My code has this switch statement: switch (button index) {case 0 : [The action sheet was dismissed with the synchronized index: buttonindex animated: yes]; break; Case 1: UIImagePickerController * imagePicker = [[UIImagePickerController alloc] init]; ImagePicker.delegate = self; ImagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; [Self-Present Model Week Controller: [Image Picture Autorelej] Animated: Yes]; break; Default: [Open Employee View Control Controller: Self]; } And I am getting an error on UIImagePickerController urgency in case 1: Error: Expected expression before 'UIImagePickerController' And I do not know what I'm doing wrong. idea? Oh, and the button Indian is an NSI tagger

internet explorer - Whats the best way to introduce decrypting and showing passwords in delphi -

A few weeks ago I lost my password for MSN and my company email was more imported, which is every 30 days or more Some change, they are troubled because of the length there and I do not like writting them down. Either way I downloaded a so called password recovery tool and it worked well, but then I was spammed with ads for the day. My question is, how can I go about making such a tool in Delphi? There are so many programs that do this, well, I want my own that I can trust. I have 8 MSN accounts Yes 8 and every company with which we work, it is very misleading. I need .... Finds all usernames decrpts Shows both memos 1 and memo 2 Now the code I want should start with the functions, store in strings Must have to do, and the end result should be, showmates (name of function); You see that it has happened sometime, so if I can make a device to automatically detect and remember and I can use it in that browser then it would be better. I usually reset the web browser of the ...

Silverlight 3 - Exchange Web Service -

In my Silverlight 3 app, I've just added the service reference in Exchange 2007 Web Service (EWS). After doing this, I got the following warning: Custom Device Warning: No end point compatible with Silverlight 3 was found. The generated client class will not be useful, unless the endpoint is provided through the Information Constructor. As a result, I can not use ExchangeServiceBinding from the Silverlight code (which seems like the main category to use to call for service) No clue? Thank you! Solilight currently supports only the basic Http binding. So, what do you need to do that is to create a web service that wraps EWS and enables the original HTP binding of your webservice. Hope it helps.

api - Javascript converting DateTime to "______ seconds/minutes/hours/months ago" -

ट्विटर एपीआई फॉर्म के समय टिकटें लौटता है: "शनि, 25 जुलाई 2009 04:54 : 42 +0000 " टाइम ज़ोन के आधार पर" ________ सेकंड / मिनट / घंटों / महीनों पहले "इस फ़ॉर्म के समय-टिकट को बदलने का सबसे अच्छा तरीका क्या है? धन्यवाद जॉन रेसिग

algorithm - Small World Theory implementation - like in XING -

Some people probably know what XING is: This is an online network community, such as Linked Ink. You can add new contacts, manage them, search for contacts, etc. The entire application is done in Ruby and is inspired to some extent by small world theory, at least it is said. There is a special feature that I can not really imagine how it is done. If you search for a person who is not in your contact list, and you click on Z's profile, then you have Z displayed all possible connections from the person. Example: you -> person b -> person c -> person e -> person z You -> Person M -> Person N -> Person I -> Person Z You -> Person M -> Person -> Person J -> Person Z etc. Especially if you have lots of contacts, then it is possible to have connection too much. And the app is fast! So, my question is: How has such a facility implemented? What kind of system / database is behind it? I've only experienced the standard...

internationalization - .po to .mo convertor in php? -

मुझे एक PHP स्क्रिप्ट है जो .po (पोर्टेबल वस्तु) को मो (मशीन ऑब्जेक्ट) फाइल? क्या PHP में कोई स्क्रिप्ट उपलब्ध है? बाइट + ------------------------------- ----------- + 0 | जादू संख्या = 0x950412de | | | 4 | फ़ाइल प्रारूप संशोधन = 0 | | | 8 | स्ट्रिंग्स की संख्या | == एन | | 12 | मूल तारों के साथ तालिका का ऑफसेट | == हे | | 16 | अनुवाद स्ट्रिंग के साथ तालिका का ऑफसेट | == टी | | 20 | हैशिंग टेबल का आकार | == एस | | 24 | हैशिंग टेबल ऑफसेट | == एच | | । । । (संभवतः बाद में अधिक प्रविष्टियां) । । | | हे | लंबाई और amp; ऑफसेट 0 वीं स्ट्रिंग ----------------। ओ +8 | लंबाई और amp; 1 स्ट्रिंग ऑफसेट ------------------ ... ... | | ओ + ((एन -1) * 8) | लंबाई और amp; ऑफसेट (एन -1) वें स्ट्रिंग | | | | | | | टी | लंबाई और amp; ऑफसेट 0 वीं अनुवाद --------------- टी +8 | लंबाई और amp; पहला अनुवाद ऑफसेट -----------------। ... ... | | | | टी + ((एन -1) * 8) | लंबाई और amp; ऑफ़सेट (एन -1) वें अनुवाद | | | | | | | | | | | एच | शुरू हैश तालिका | | | | | ... ... | | | | एच + एस * 4 | अंत हैश तालि...

asp.net - fileupload.postedfile.filename not working with firefox -

Is there a problem with hi fire fox? I'm not able to use the file name in Firefox fileupload.postedfile.filename Regards, Nagu What do you get? IIRC sends Firefox without filename (IE sends full path); But still must be enough to get a name. If you use Path.GetFileName (filename) , you should answer the same from either ...

javascript - $(document).ready and iframe content -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब विल $ (दस्तावेज़)। Parent पृष्ठ में iframe सामग्री को पूरी तरह से लोड होने के लिए इंतजार करना है? मेरे पास एक अभिभावक पृष्ठ है जिसमें वहां है एक आइफ्रेम आईफ्रेम पूरी तरह से लोड होने के बाद मुझे माता-पिता के पृष्ठ से आइफ्रेम में एक फ़ंक्शन डालने की आवश्यकता है। देखें

Is there a Microformat for the Hours a Business is open? -

I was thinking that there was a microformat for one business hours so far. If not, after submitting the same question in the micropromits mailing list, for whom do I have to submit a standard? Good Relations Terminology One The standard method provides: A reply to a person named Martin Hepp, which apparently came with a specification for it. For business hours of operation, see: # Complete imagery and other content Html>

c# - How can i find XElement using linq -

मैं सी # के साथ काम कर रहा हूँ। & lt; Tuberkiloz & gt; & LT; Kod & gt; 1000 & lt; / code & gt; & Lt; / Tüberkiloz & gt; & LT; tifo & gt; & LT; Kod & gt; 1001 & lt; / code & gt; & Lt; / tifo & gt; & LT; Bakteriyel_Endokardit & gt; & LT; Kod & gt; 1002 & lt; / code & gt; & Lt; / Bakteriyel_Endokardit & gt; यह मेरा xml है और मैं Tifo लेना चाहता हूँ मुझे "कोड" नोड्स का उपयोग करना चाहिए जैसे XpathSelectelement ("कोड")। मान = 1001 प्रत्येक तत्व को मानते हुए & lt; कोड & gt; तत्व, और ये सभी मान्य पूर्णांक होते हैं, आप इसका उपयोग कर सकते हैं: var doc = XDocument.Parse (@ "& lt; रूट & gt; & lt; Tüberkiloz & gt; & lt; कोड & gt; 1000 & lt; / code & gt; & lt; / Tüberkiloz & gt; & lt; Tifo & gt; & lt; कॉड & gt; 1001 & lt; / कॉड & gt; & lt; / Tifo & gt; लेफ्टिअेल_ऐन्डोकार्डिट & g...

javascript - Moving items between two list but filtering ones that already exists -

I have a web page that includes two lists (Unidar's lists), I have to move from list 1 to list 2 , But to filter those items that are already in the list 2. I am using the JQuery JS library. I know I can select all the items to move to List 2, loop one by one and checking whether Eldy is present in List 2, but was wandering, if using the filter code There is no way to do this in the lower lines, so no: ... there is an html structure: I first used an array of elements of my list 2 using the inner text , And then using list1 , selecting non-existing elements of list2 using $ .inArray: var list2Items = $ ('# UlList_2 li & gt; a'). Map (function () {return $ (this) .text ();}); // list2Items will be: ["item 2", "item 3", "item 4"] var itemsNotInList2 = $ ('# ulList_1 li & gt; a'). Filters (function () {return $ .inArray ($ (this) .text (), list2Items) == -1; // only select non-existent}); // items

c# - Drawing family trees with WPF -

I'm searching for tutorials on how to attract a family tree with WPF (and C #). Something like that or family. Show but family for a complete start. It is a bit too complex to start showing, I do not want to apply external control but instead I want to learn how to write it myself. So I have to know all this: how to attract objects, algorithms are in what position all elements etc ... but I could not find a tutorial with WPF. I hope someone can help me. see family safe. Show:

Are NHibernate projection/DTO objects immutable? -

If I am creating a DTO using projection and an import mapping, then by default the object is ineligible for NHibernate Or is it possible to define the unstable = incorrect in import mapping You can write a test that uses NHibernate Receives the same DTO, then checks to see if they have similar references. If they are the same reference then I would assume that NHibernate keeps them in the identity map. My guess is that they are not equal to the context. References (dto1, dto2)

Adding item to tab control in VS 2008 WPF app -

Add item to tab control in the VS 2008 WPF app I am a newbie for the WPF I am using VS 2008 and working with WPF app. I add a tab control with the design editor and then add a new tab. I leave a button on the tab control as a button but in reality, instead of being in separate tabs, the object is roughly at the top of the control. Am I doing wrong or what is the need to separate? EDIT: Here is an example of what XAM is created. & lt; Window x: Class = "testapp.Window1" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: X = "http://schemas.microsoft.com/winfx/2006/ Xaml "title =" window 1 "height =" 300 "width =" 300 "& gt; & Lt; Grid & gt; & Lt; Text box height = "23" margin = "87,80,71,0" name = "text box 1" vertical alignment = "top" /> & Lt; TabControl margin = "8,29,1,64" name = "Tab control 1" ...

javascript - How to properly compress Jquery and lots of plugins? -

I am trying to clean a site's JavaScript. I think the title of my site is growing further: & lt; Script type = "text / javascript" src = "jquery.base.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin1.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin2.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin3.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "jquery.plugin4.js" & gt; & Lt; / Script & gt; I have good information about the negative effects of many requests. Many JSs are embedded in the site, which will require dragging into external files. Can I paste it and run it through some compression or will it cause issues? I hope someone has some ...

database - Advantages to using Microsoft SQL Server with an open-source stack -

SQL Server is really awesome tools and features, I think to consider it instead of using MySQL, even if I'm developing on an open source stack. Has anyone developed an app on a non-.NET stack and chose to use the SQL backend? What were your reasons for doing this? Do not ignore - MySQL is open in every bit, not a disturbance between MySQL cases After the acquisition by Sun, then by Oracle, except for the main developers, in Bundabandi, Maria DB, Our Delta, ...), and MS SQL Server as functionally rich and consistent with SQL standards No (I do not remember recursive but there is a lot in CTE when I SQL - both have to use SQL Server and PostgreSQL, however, there is such need SQL standards!). Recently concluded OSCON (Open Source Convention) in 2009. José, I had a completely subjective impression that people with Mykkel and forks were busy for each other's needs, many Microsoft people were completely mothers about databases, and PostGreySQL people used to discuss it, t...

c++ - How to send POST request to some website using winapi? -

I want to send an HTTP post request to the website and as a result the page wants to get it again using WinAPi. How can i do Thanks I advance Sample code using WinHTTP:

Algorithm for generating a 'top list' using word frequency -

I have a large collection of man-made content, I want to find the words or phrases that are most often What is an effective way to do it? Do not recapture the wheel as a full text search engine such as

c - Creating a Wrapper for strncpy to Insert Terminating null -

I decided to create a cover for strncpy because I have a lot in my source code Need to do string copies and I want to make sure the string is finished if the source is equal to or equal to the destination. This code will be used in production, so I want to see if there is any potential danger in using it. I have never used a wrapper before, so I am trying to make it right. Many thanks for any advice, / * null * / char * strncpy_wrapper (char * dest, const char * source, const size_t dest_size, const size_t source_size ) {Finish strings after fighting strncpy (dest, source, dest_size); / * * Compare different lengths, if the source is big * or end up with a zero equal to the destination. * / If (source_size> = dest_size) {dest [dest_size - 1] = '\ 0'; } Return destination; } ==== Updated updates ==== / * faucet * / char * strncpy_wrapper (Four * Destination, Const char * Source, const size_t dest_size) {strncpy (dest, source, dest_size); / * * If more tha...

flex - How to implement HTTP Tunneling -

I connected a flash client to a back-end server to exchange data. (1) Web (HTTP) server - listen by default on port 80 (2) I have written my server from scratch, socket / Application-server - listen to port 443 by default. Just for FYI reasons, both servers run on the same process location, they are not expecting heavy load, so I Okay with me As soon as Flash client is served to the browser from an HTTP socket, the customer tries to open an XMLSocket in the socket / application server. I want to implement the HTTP tunnel now, so that my client can connect to the application server, even though the user is behind the firewall. I do not include any external server (proxy etc.) - just use the server I already have. My question: (1) Is Port 443 better to use that? (Is it a better firewall?) (2) As far as I can see, what I have to do, is to make sure that my actual application data is explained in an HTTP structure only (Already a dummy HTTP header), from both client an...

java - Optimizing N Queens code to avoid stack overflow -

I try to write a Java class to solve the problem of n queens using stacking and recursion of some squares I am stuck in the answer grid (two dimensional arrays), but I have struck a dead wall which has a heavy overflow for recursion at n = 8 (the maximum recursion has reached 2298) so I I am thinking that there is no way to bypass this deceased. Make some complex (or tell me a tutorial / example), such as allotting more heaps of space (if possible?) Or using multi threads ... or please advise on optimizing the code. Thanks in advance Public Zero Rider () {this.gridPile.push (copyGrid (grid)); {Int row = gridPile.size () - 1; If (gridPile.size () == 0) line = 0; Choose grid spaces (this grid, find available availability (grid, line)); If (gridPile.size () == this.taille) {gridSolutions.push (copyGrid (grid)); Grid = grid.php (); Boolean wrong = true; While (wrong) {try {MakeNextUnavailable (grid, gridpile size ()); Wrong = wrong; } Hold (absence exception R1) {try {grid = grid.pi...

c# - Best way to do a string search and replace -

I have to write some code which highlights an HTML on specific keywords in the string. If I have a list of strings with a comma and I would like to do one search and substitute for each entry in the list on the other string. What is the most effective way to do this? I am currently doing a partition, then for a foreach and a Regex.Match example: string wordTalkcheck = "this", "the" , "And"; String list array [] = wordpress check. Sample (','); String contentToReplace = "To work as a professional designer, is used for each other, but for some time he has to work in any way to work and work."; Forward (string work in list array) {if (match to regx match (content to replay, word + "\ \ s +", reggaeops.ec.ogor case) .full) {rijks rivne Revolted (content to replay, word + "\\ s +", string.format ("& lt; span style = \" background-color: yellow; \ "& gt; {0} ", Words), RegexOptions.Ign...

javascript - Add onload function to an opening window -

एक खुले विंडो में onload फ़ंक्शन कैसे जोड़ें? (लक्ष्य "स्वयं" है, window.open नहीं, सिर्फ एक नियमित लिंक है) क्या यह onbeforeunload या कुछ और के साथ संभव है? या "सामान्य लिंक" पर ऑनक्लिक जोड़ें? मेरा मतलब ये है: & lt; a href = "page2.htm" onclick = "TheWindowIhaveOpened.onload = function () {चेतावनी ('लोड')} & gt; ... लिंक पर एक ऑनक्लिक हैंडलर और स्क्रिप्ट का एक बाहरी भाग के साथ, आप ऐसा कुछ कर सकते हैं: & lt; script type =" text / javascript "& gt; फ़ंक्शन लोडहेन्डलर () {// do stuff} फ़ंक्शन क्लिकहैंडलर (एएमएम) {h = window.open (); H.onload = loadHandler; H.location.href = elem.getAttribute ('href'); विवरण झूठा है; } & Lt; / script & gt; & Lt; a href = "page2.htm" onclick = "वापसी क्लिकहैंडलर (यह);" & gt; लिंकी & lt; / a & gt; बेशक आपको क्रॉस-ब्राउज़र काम करने के लिए इसके साथ कुछ काम करने की आवश्यकता हो सकती है। संपादित करें रिटर्न...

osx - Why am I getting this message on mono ? "warning FS0191: Could not determine highest installed framework version..." .NET" -

I have installed Mono (version 2.4.2.1) on Mac OS X (10.5.7) and I try to I am using some F # coding F # version I is 1.9.6.16. I get this strange message on FSharp Interpreter when I type some simple commands (like printfn): Alert FS0191: Using Registry 2.0 Could not set the highest installed .NET Framework version with keys Shoud I have any configuration before starting to use it? I googled for this error code, but I can find that it is a common error and what is happening. Thanks in advance Other answers are correct. The warning is harmless (and is expected to be on mono). Note that for example the search FS0191 is not currently very useful (approximately 90% of error diagnosis currently reports this number); Error numbers in Beta 2 will be updated so that there will be approximately 1000 different FSnnn errors for different conditions, which will be able to do more research for diagnosis.

wpf - How do you generate an overlay like Jing has in C#? -

I'm just learning C # and I thought it would be good to recreate some things like Jing (only Not part of the screenshot video). I'm thinking how to make an overlay like this: You click your mouse and look through the part, it takes a picture. Brian Scott: Take a look at: C # source is included.

How to modify attributes of forms generated by webapp (Google App Engine)? -

यहां उदाहरण से: मॉडल और फ़ॉर्म वर्ग हैं > वर्ग आइटम (डीबी। मॉडल): नाम = db.StringProperty () मात्रा = db.IntegerProperty (डिफ़ॉल्ट = 1) target_price = db.FloatProperty () प्राथमिकता = db.StringProperty (डिफ़ॉल्ट = 'मध्यम' (विकल्प) = ('उच्च', 'मध्यम', 'कम']) प्रविष्टि समय = db.DateTimeProperty (auto_now_add = true) जोड़ा गया = db.UserProperty () वर्ग ItemForm (djangoforms.ModelForm): कक्षा मेटा: मॉडल = आइटम बाहर रखा = ['गयी_बी'] इसे तालिका पंक्तियों के रूप में प्रदान किया जाएगा। क्या मैं इसे बदलूंगा, कैसे बदलूंगा? तालिका पंक्ति या कुछ भी ...)? Django फ़ॉर्म डॉक्स पर एक नज़र डालें, डॉक्स 1.0 के लिए हैं, लेकिन इनमें से अधिकांश ऐप्लिकेशन इंजन के साथ बंडल किए गए 0.91 संस्करण पर भी लागू होता है। आपके प्रश्न का संक्षिप्त उत्तर: form.as_p एक HTML उत्पन्न करेगा & Lt; p> टैग की एक श्रृंखला के रूप में प्रपत्र का प्रतिनिधित्व, जबकि form.as_ul एक श्रृंखला उत्पन्न करेगा & lt; ul> टैग और form.as_table एक तालिका उत्प...

.net - Using the Public Key of Signed Assembly as a Security Measure -

I am writing a security measure with an application that I am writing where I have a security DLL . If this assembly is present, then I check the byte array which comes back when it receives the public key, and compares my application. Is there sufficient security to ensure that no one has amended my assembly or will have to return the public key to its own DLL at the right place? I have seen what obobscoters do and they resign my assembly, but are they actually using SNK or are they using the internal assembly and reuse it? If you If the SNC file is used to keep the assembly safe, then no public key should be able to create a new security dell. A cryptographic key pair is required to sign the assembly with a strong name. The private key of this pair is used to sign the assembly. If a security assembly was to be modified, it will need to be re-signed, for which the original snack file will be required. If a different snack file is used, then the assembly will have a diff...

cocoa touch - Would the general iPhone pasteboard ever contain more than one item? -

What pasteboard.numberOfItems (in the code below) will be more than 1? How will this be a user? UIPPboard * Pasteboard = [UIPPboard General Pasteboard]; Pasteboard. Numberoff item Note that I'm not asking that a pasteboard item can have more than one representation type. Update : I understand that programmatically put more than one item in a pasteboard (using the elements of an item, or using an array of items, One dictionary) but can this user use any built-in app? I think someone can easily write an app that puts more than one item in the pasteboard (so my app should be strong, it should handle that situation). The built-in Photo app allows you to place several photos on the normal pasteboard. Just use the "Share" button, select several photos, and then press "Copy" In the normal pasteboard, then each picture will be in the form of an item with two representatives: "public.jpeg" And the second representation (text) "public....

Encoding error in PHP with Google Translate -

I have some text which I need to translate to Japanese. translate article, webpage, or document Google Translate returns this string: 翻訳 テ キ ス ト, web ペ ー ジ, ま た は ド メ ン ト When I'm writing that text to a file (ja.po), it Appears: - | What can I do? I'm using poeditor .exe . I am currently not using any encoding function. for (/ * extracted from the stringed string array) / $ {$ Pattern = "/ \" ". Preg_quote ($ id, /') ."\"(\r?\n)msgstr \ "\" / "; $ String = str_replace ('' ',' \" ', $ string); $ Substitution = "a \" $ id \ "\ nmsgstr \" "$ string" \ "". $ Res = preg_replace ($ pattern, $ replacement, $ conn); $ To = $ res; } File_put_contents ("ja.po", $ con); How are you getting the string from Google and how are you writing it? Somewhere it changes from UTF 8 to Latin 1. I think you can find out where this happens, use it to decid...

SQL Server Datetime issues. American vs. British? -

On my test db, the dates are displayed in the DD / MM / YYYY format. On display, I mean that when you right click, the table open in Management Studio, the returned data is displayed in the DD / MM / YYYY format. The funny thing is that when I write T-SQL, I have to input an MM / DD / YYYY format to get the right data back. Can I align it in the DD / MM / Y Wiai format anyway? You can use the date format in the SQL Server in the expected format (I think the management studio uses the computer's regional settings for the purposes of the computer, though not sure). However, I believe that they consider the values ​​using parameters rather than embedding in the Queryment statement. If you use the criteria you will not face any issues. Everything is taken care of. set language us_english declare @d datetime = '1929/12/18' set language British declared @d datetime = '1929/12/18' - failed declare @ langid int = (choose from syslanguages ​​langid where...

java - EXT-GWT Portal: How to get all Portlets? -

नमस्ते यह सब मेरा पहला प्रश्न है यहाँ! Im बस (Ext- ) जीडब्ल्यूटी मैं Ext-GWT पुस्तकालयों का परीक्षण कर रहा हूं और वास्तव में: ये पूर्ण महान हैं! अब मेरा प्रश्न: क्या परिभाषित पोर्टल के लिए एक "स्पष्ट पोर्टल" या "सभी पोर्टल्स छिपाएं" करना संभव है? या क्या मैंने हमेशा अपने उदाहरण कोड में मैन्युअल रूप से पोर्टल साफ़ कर दिया है? मेरा नमूना कोड इस तरह दिखता है: // पोर्टल को परिभाषित करें, 2 कॉलम, प्रत्येक 50% चौड़ाई चौड़ाई , सीमाओं और पृष्ठभूमि के साथ पोर्टल पोर्टल = नया पोर्टल (2); portal.setBorders (सही); Portal.setStyleAttribute ("पृष्ठभूमि रंग", "सफेद"); Portal.setColumnWidth (0, .50); Portal.setColumnWidth (1, .50); // सभी उपयोगकर्ता portletUser = new Portlet () दिखाने के लिए एक पोर्टलेट को परिभाषित करें; portletUser.setHeading ( "Benutzer"); configPanel (portletUser); PortletUser.setLayout (नया FitLayout ()); CompUserList compUserList = नया CompUserList (); portletUser.add (compUserList); portletUser.setHeight (250); // सभी ...

.net - Recognize application connected to SQL Server 2005 -

I should know which application is connected to DB and execution of SP. (I want to limit the execution of SP only my app - all others - for example MS SSMS will be ignored) So, is there a way to detect associated client names? If you do not have other suggestions to make sure that only dedicated app is used (the app is using Windows' integrated security) Edit: Which problem I'm trying to solve: I'm working on the app made in the user's right & amp; Roles module Therefore, the app receives all areas from DB (SP) and it is decided by commercial logic to show which user (or not) I am afraid of a more experienced user: He can run his own app, connect to DB and leave all security restrictions. This is the reason why I want to ensure only DB conversations with this app. P> Connection string is the ultimate solution but it is easy to sniff - I wonder if there will be another option The only thing that can be authenticated on Windows is the user ...