Posts

Showing posts from August, 2013

c# - File I/O with streams - best memory buffer size -

I am writing a small I / O library to assist with a big (hobby) project. A part of this library performs different functions on a file, which is read through the FileStream object. On each streamReader. Read (...) , I prevent an event that will be used in the main app to display progress information. The loop processing is wired, but not very time consuming (this can be just a simple file copy, for example, or encryption may include ...). My main question is: What is the best memory buffer size to use? Thinking about the physical disk layout, I could choose 2K, which would cover a CD sector size and 512 bytes would be a lot of hard disk sector. High above Abstract Tree, you can go for a bigger buffer which can read an entire FAT cluster at a time. I feel with today's PC, I can go for a more hungry hunger option (for example, a couple of MIBs), but then I increase time between UI updates and the user considers less sensitive applications. On the one hand, I am hoping to

language agnostic - Stack data storage order -

While talking about a stack in either computing or "real" life, we usually call a "first, last stop "Kind regards functionality. Because the idea of ​​stack is around some things in the physical world, does it make any difference to how stack data is stored? I have seen in many instances that stack data is often stored using an array and the latest item added to the stack is placed below the array. (Such as adding the existing stack of plates to a new plate, it is placed below other plates instead of above). As a paradigm, is it the figure how the data is stored inside the stack, until the operation of the stack works as expected? It does not matter how your data stores in memory until the functionality and are expected as functionality. Often the heap is implemented as an array with a size and capacity where the size is currently the maximum number of stacks and capacities that can be stored without the need for any relatively expensive real-rea

jQuery Checkbox class attribute -

आप एक jQuery चयनकर्ता में & lt; asp: चेकबॉक्स & gt; के वर्ग विशेषता का कैसे उपयोग करते हैं बयान? उदाहरण के लिए और एटीपी: चेकबॉक्स रनैट = "सर्वर" आईडी = "सीबीटी टेस्ट" टेक्स्ट = "सीबी टेस्ट" फ़ील्डनाम = "1 टेस्ट चेक बॉक्स" वर्ग = "toggleBox" / & gt; यह: $ (': चेकबॉक्स')। ToggleAttr ("चेक किया", सही, गलत) < P> चेकबॉक्स तक पहुंचता है और चेक किए गए विशेषताओं के लिए एक कस्टम फ़ंक्शन लागू होता है, लेकिन अगर मैं किसी निश्चित वर्ग के आधार पर फ़िल्टर करना चाहता हूं तो मैं उस पर कैसे पहुंच / फ़िल्टर कर सकता हूं? & lt; asp: चेकबॉक्स & gt; को & lt; इनपुट प्रकार = "चेकबॉक्स" / & gt; के रूप में प्रदान किया गया है। तो आप एक और उसके बाद का उपयोग कर सकते हैं। $ ("input: checkbox.togglebox") आपको वांछित चेकबॉक्स प्राप्त करेगा वर्ग नाम टॉगलबॉक्स। नोट $ (': चेकबॉक्स' ) के बराबर है $ ('*: चेकबॉक्स') , इसलिए $ ('इनपुट: चेक

Debugging utilities for Linux process hang issues? -

I have a daemon process that makes configuration management. All other processes should interact with this daemon for their functionality. But when I perform a major action, after a few hours the daemon process is unresponsive for 2 to 3 hours. And after 2 to 3 hours it is working normally. Problems with debugging utilities for the Linux process? At which point the Linux process hangs? strace can show last system call and their results Lsof can show open files If log messages are written to track progress, system logs can be very effective, allowing box to issue problems in small areas Also log system Relate to other messages from other system, this often results in interesting results wire Use not use sockets to see Chatterjee wires. ps ax + top can show if your app is in a busy loop, i.e. sleeping in the Io or blocked in the IO, is consuming the CPU using memory. Each of these can give a small part of the information that simultaneously make a picture of the pr

http - which header do i need to send to browser when responding with flash file -

I create a simple single threaded web server that I am embedded in my application in QT C ++ - this The server is responding correctly to the simple html page, but when I try to react with the embedded Flash file inside html then all the html string is printed in the browser. I have a question that What header and http responses let me save the flash Content in the browser - Thanks content type The header SWF file should be set to application / x-shockwave-flash . Otherwise the browser will not understand the file type and will present it for download.

c# - Supplying output parameter to sqlparametercollection resulting in error (Varbinary) -

I want to supply output parameter to my stored proc, return this output process byte [] Used to be. How do I do this? If I do the following: command Parameter. Add (new SQLPamator ("@Bytes", SQLDB type.ubblery)); Command. Parameter [1]. Direction = Parameter Direction Output; I get: system. Infinite Operation Exception: Byte [] [1]: Size is an invalid size of 0. This stored work works well in SQL Server when I execute the SSMS option "execute the stored procedure". Any ideas? Thank you You must provide a value for the size parameter: New SqlParameter ("@bytes", SqlDbType.VarBinary, 8000)

privacy - How to limit information requested by my facebook app -

I am using Facebook Connect so that visitors can use their Facebook account on a Facebook. The only information is the user ID and name. Although the Facebook Connect dialog tells me that my app all user friends, photos ... How can configure my facebook application not to request those data? Quick reply, you can not communicate that you have the ability to access user information . Whether you access it or not depends on you, but the ability to always have the base level of access to all the apps you can indicate for extended permissions, but you can not customize the base level. It may be going forward with OpenGraph, there are still features in it, and some existing, non-documented features.

css - flash video player doesn't display in IE -

I can not see Flash Video Player in IE in this website: It works in other browsers: for example, articles Click on 'Test' Jacques and scroll down, you will see a blank space instead of video. Update: This is a video object code. Why is not this code working in IE? & lt; Object data = "[site-url] /videoplayer/bin-debug/videoPlayer.swf?file= [site-url] / [filefield-filepath]" height = "445" id = "movie_player_1" type = "application / x -shockwhite "width =" 640 "& gt; & Lt; Param name = "bgcolor" value = "#fffff" /> & Lt; Param name = "allowed screen" value = "true" /> & Lt; Param name = "autoplay" value = "true" /> & Lt; Param name = "flashvars" value = "[site-url] / [filefield-filepath]" /> & Lt; / Object & gt; Update : Using swfobject: & lt; Script type = "text / javascript" &

How to get object properties of specific class in SPARQL -

I have some mechanisms (campus.owl). Tree class (student, sport, lecturer) Students have joined the lecturer class using the property of "object" and the student category is included in the sports category with "isPlay" object property. Problem I'm using object assets and interpreters some SPARQL queries. PREFIX rdfs: & lt; Http: //www.w3.org/2000/01/rdf-schema#> PREFIX rdf: & lt; Http: //www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX my: & lt; Http: //www.semanticweb.org/ontologies/2010/5/Ontology1275975684120.owl#> Choose? Prop Hoffa {{Sahara ..........}} How should I proceed? SELECT? Prope Ho Where {? student? Prop? Lecturer? Student A & lt; Students & gt; ? Lecturer A & lt; Lecturer & gt; } I think that will do what you want. If you want to get information related to the property, then you SELECT? Prop,? PP, OO WHERE {? Prop? Pp? Oo}. student? help? Lecturer Student & lt; Students & gt; ?

ASP.NET MVC Map String Url To A Route Value Object -

I am creating a modular ASP.NET MVC application using fields. In essence, I have created a greedy path that captures all the routes beginning with {apps} / {* catchAll}. Here is the verb: // get / application / index Public ActionRashult Index (string app, object catchold) {// forward partial view ViewData ["PartialRequest"] = new partial spacing (all catching); // it is said in the viewing page and uses partial request class to return partial view} Example: URL "/ app / Accounting / logon "will then cause the index action to pass in" partial vacancy "/ accounts / logon", but will be the reason for passing as a string value. // Partial Request Manufacturer Public Partial Request (Object Route Value) {RouteValueDictionary = new RouteValueDictionary (routeValues); } In this case, the root value will not return any values ​​for the dictionary mode, whereas if I specify a path in the index action: ViewData ["partialRequest"

How to add wsse:Security, UsernameToken header to a SOAP request in ZSI, Python? -

Is there a way to add wsse: security, user name headers for psap requests in JSI, Python? I searched the web but could not find any answer. After doing further searching, I'm planning to use intent and suds, the user Friendly, feature-rich and feel that the user provides classes and methods to add token to the SOAP header. WS-P>

java - extending jtextfield value to take date format -

I need a text field in the Java swing which will only be considered as a date type Take a look at ( JTextField subsection). The example should also be useful.

Android application doesn't start from Eclipse -

Before I started: I searched Google and stack overflow, none of them gave a clear answer. Status: I'm using Eclipse on Windows to develop an Android application. So when I'm trying to run the app, the system outputs to the console [2010-06-14 17:04:39 - helloiler layout] ------ ---- -------------------- [2010-06-14 17:04:39 - HaloLiner Layout] Android Launch! [2010-06-14 17:04:39 - HaloLiner Layout] ADB is running normally. [2010-06-14 17:04:39 - Hello linear layout] Com. Explore. Halo Leaner layout. Halo Lineer Launch Activity Launch [2010-06-14 17:04:39 - HaloLiner Layout] Automatic Target Mode: Launching New Emulator with Compatible AVD 'Default_2 1' [2010-06-14 17:04:39 - Haloener Layout] Launch a new emulator with virtual device 'Default_2.1' The emulator starts but does not upload .APK does not start activity and therefore, the app can not Has not started from I got a "solution", but it is unclear and does not work. For example, I do

cocoa - Setting the font of an NSTextView -

I'm subclassing NSTextView to set it to default font: PTNfoEditField.h @interface PTNfoEditField: NSTextView {} @end PTNfoEditField.m @implementation PTNfoEditField - (id) init {if ( Self = [Super Init]) [[[Self TextStorage] Set font: [NSFont fontname: @ "courier" size: 10]]; } Healthy return; } @end However, this does not work and I do not know how to do this in a different way. Can somebody help me out? Thank you. is not the beginning init for the view; it initWithFrame: . In addition, if your idea is in neutral, you have to override the initWithCoder: . Ensure that your view is actually a PTNfoEditField, not regular NSTextView In addition, you should use [NSFont userFixedPitchFontOfSize: 0.0] to set the font. You must not strictly have the name of the font (user can prefer the better monospace font) nor the font size (the user can find a 10-step link difficult to read or set up its anti-aliasing threshold is).

.net - Display Consistent Value of an Item using MVVM and WPF -

My list view controls (or the position will fit in another WPF control), I would like a TextBlock to be consistent for all items While the second text block, which changes on the basis of value in the observable clip. Here's how my code is currently kept: XML item items = "{binding} Path = myithms, mode = twitter} "& gt; & Lt; ListView.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; TextBlock x: name = "strVal" text = "{binding strVal}" /> & Lt; TextBlock x: name = "ConstVal" text = "{MyWinding binding} ConverVal, Mode = TwoWay}" /> & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; /ListView.ItemTemplate> & Lt; / ListView & gt; Model Public class MyItem {public string StrVal {get; Set; }} see modell public MyVM () {Observable Collection & lt; MyItem & gt; M

reflection - How to call Java function from string stored in a Variable -

संभव डुप्लिकेट: मुझे फ़ंक्शन कॉल करने में सक्षम होने की आवश्यकता है, लेकिन फ़ंक्शन का नाम किसी चर में संग्रहीत किया जाता है, क्या यह संभव है उदा: सार्वजनिक void foo () {// यहाँ कोड} सार्वजनिक शून्य बार () {// कोड यहाँ} स्ट्रिंग functionName = "foo"; // मुझे फ़ंक्शन के आधार पर फ़ंक्शन कॉल करना होगा। नाम Anyhelp महान होगा, धन्यवाद हाँ, आप प्रतिबिंब का उपयोग कर सकते हैं हालांकि, प्रभावी जावा 2 संस्करण, मद 53: प्रतिबिंब के लिए इंटरफेस को प्राथमिकता भी पर विचार करें। यदि संभव हो, तो इंटरफेस का उपयोग करें। संबंधित प्रश्न / H3>

java - User sign-up with email verification -

I am developing a website using struts2 and jsp pages. After several sign-ups, in many sites, a link will be sent to your email and click after clicking on registration. I want this feature on my websty, but I do not know how to do it and how it is working? Should I save the user's information on my database until it is verified or not? Any Tutorial? The algorithm is something like this: Save user information, Mark it with a pending status. Generate a token that contains some information related to the user's account. Generate email, which should include the URL to activate the account and the token will be in the URL. The URL should point to some servlet or service in your app which will validate the token, check that the user related to the token is inactive, submit the completed form (Set user password, presenting captcha And so on) and the form on which you have activated the account with the password set. You should periodically scan the account of an

drawing just half of a matrix in matplotlib with python -

How can I attract only half of the matrix, e.g. The top / bottom part of a matrix, for example with pcolor? Suppose i have an n x n matrix and I draw it using pcolor (my_matrix). I want only lower half to be shown because other values ​​are useless. How can it be done? Thank you. Is this zero in the other half? Theater (mat * triangular (shape (mat)))

wpf - What's the best way to cancel an asynchronous WCF request? -

I'm using methods (and handling a blank flag while sending the results of the main thread). I would like to use the MyFunctionAsync method (and hooking in MyFunctionAsyncCompleted event instead of Begin / End instead of async calls) using MyFunctionAsyncCompleted if the best / supported cancellation is the way to handle WCF requests , And still make sure that the event is not removed on a page that is no longer loaded (ie page navigation within a range). Edit: I have decided that I want to create my WCFClient object on a call-based basis, so here's what I brought (As opposed to per-WPF-page or per application): Public Zero StartValidation () {WcfClient WCF = New WcfClient (); Wcf.IsValidCompleted + = new event handler & lt; IsValidCompletedEventArgs & gt; (Wcf_IsValidCompleted); // Pass WCFClient object as a userState parameter so that it can be wcf.IsValidAsync (TextBox.Text, wcf) turned off later; } Zero wcf_IsValidCompleted (object sender,

css - Using FontSquirrel @Font-Face Generator: font quite fuzzy in Firefox -

Mac Firefox (3.6.3) looks fast in fonts, chrome, safari, IE8 (not as good as Firefox As much as 2, but fuzzy than Firefox) Any work around? How can I decide which source file I am using Firefox? Can I force it to choose someone else in CSS? Some fonts (especially free ones) are designed to render only in certain sizes And we can present it oddly otherwise. What is feeling pixelated at 16px, use anti-alias on some 17px to raise or decrease the font size by some pixels and see if you get better results.

Type-safe generic data structures in plain-old C? -

I have done more C ++ programming than "plain old C" programming. One thing that I miss a lot when there are programming type-safe generic data structures in plain C, which are provided by templates in C ++. For concretions, consider a general single link list. In C ++, this is a simple matter to define your template class, and then instantiate it for those types of methods instantly. In C, I can think of some ways of implementing a common single link list: Type the linked list type and helpful processes once Use zero signals to move around one type of type system. Write preprocessor macros while taking the required types of names, to generate a type-specific version of the data structure and support processes. Use a more sophisticated, standalone tool for the codes of the required types. I do not like option 1, because it changes the type system, and can be worse than a specific type-specific implementation, a uniform representation of the data structure for a

iphone - moving label to centre of cell -

मैंने इस का उपयोग करके अपना लेबल बनाया है UILabel * label1 = (UILabel *) [ सेल दृश्यविवरणटैग: 1]; मैं अपने लेबल को सेल के केंद्र में ले जाना चाहता हूं ... कोई भी इसका जवाब दे सकता है .... आप बहुमूल्य उत्तरों के लिए धन्यवाद ... सेल का केंद्र बिंदु सेल में है। सुपरवाइव के निर्देशांक, उस बिंदु को सेल के निर्देशांक में परिवर्तित करें और लेबल के केंद्र को वहां सेट करें: label1.center = [cell.superview कनवर्ट करें: सेल। केंद्र में देखें: सेल];

javascript - Are AJAX calls to a sub-domain considered Cross Site Scripting? -

Server A (www.example.com) is sending information to server B. I can be on the HTML / JS server only A (and "crunching" on server B), I am trying to send form data via AJAX (server B is trying to avoid a form post - do not ask). Obviously an AJAX call cross-domain is considered to be XSS and big no-no, but if I put server b into a subdomain (sub.example.com), would it be okay? Will you? How did cross-domain errors be detected? Does the browser see DNS records? IP address? Thank you in advance for your help. Subdomain is considered separate and as long as both sub-domains have the same Document.domain do not declare a DOM property (and still, different browsers behave differently).

security - Is it possible to create a FIPS 140-2 compliant server in Perl? -

The question is very simple, is it possible to create a FIPS 140-2 compatible server in Perl? In particular, is this possible without modifying any C code for this module? If this is not possible in direct Pearl, then from the perspective, what would be the easiest way to do this? I am basically creating Mini-HTPD which only works for one file, but due to this, security restrictions should be placed on SSE under FIPS compliance. I do not know at all this rule when it comes to FIPS 140-2 However, HIPAA and PCI -Unlike DSS, it is a standard that controls the power of cryptography and does not completely take the system into account. Parts of OpenSSL can be compliant with 140-2 and it is in touch with Perl through the Library module. You have to make sure that your key size is big enough for the quantity certification required for you and you do not violate any of the many.

abap - 2-level column headings in ALV list -

मैं कॉलम हैडर को एक हेडर पंक्ति जोड़ना चाहता हूं। प्रस्थान आगमन & lt; - यह पंक्ति वह है जिसे मैं हवाई अड्डे के गेट की तारीख हवाई अड्डे गेट तिथि जोड़ना चाहता हूं ------------- ----- -------- ----- --- ---- ओहारे ए 10 10 एमआर अटलांटा जी 1 9 10 एमआर डीएफडब्लू के 9 8 9 मेर डेनवर जेड 76 11 एमआर ध्यान दें कि मैं एएलवी सूची का प्रयोग कर रहा हूं, एक एएलवी ग्रिड नहीं । मैंने नमूना प्रोग्राम BALVBT01 पर देखा है, जिसमें 2-स्तर हैडर है, लेकिन यह पता चला है क्योंकि वे माता-पिता / बच्चे डेटा प्रदर्शित कर रहे हैं मेरे डेटा का केवल एक स्तर है, मैं सिर्फ कॉलमों को समूह करना चाहता हूं। मेरा समाधान मिला मानक हेडर मुद्रित होने से पहले कस्टम हेडर जानकारी जोड़ने के लिए top_of_list ईवेंट का उपयोग करें। अगर आप मानक हेडर को अपने आप से बदलना चाहते हैं, तो आप लेआउट तालिका में is_layout-no_colhead = 'X' पास कर मानक शीर्ष लेख को बंद कर सकते हैं। * इवेंट टेबल प्राप्त करें कॉल फ़ंक्शन 'REUSE_ALV_EVENTS_GET' आयात करना et_events = it_evt * कस्टम शीर्ष_ऑफ_सूची ईवेंट हैंडलर को

recursion - PHP elseif statement not executed even though initial if statement is false -

I am writing a recursive function to print the difference between 2 multilayer php arrays. The purpose of this code is to see the difference between jpeg header for detarrine how the Adobe Bridge is saving rating information within the cs3 jpg file When I am using my eclipse through the code Make Single Step - Zend Debugger IDE, It seems that if the initial statement is false (i.e. neither value is an array), otherwise the statements are never executed otherwise. Functions are attached below. Note: Changes since the original post on the basis of comments - added a default level = '' if deleted entries between blocks {} elseif {} block removed / removed one more ; No function at the end of the block & lt; And & gt; Therefore angle bracket symbols will be displayed in my code function array_diff_multi ($ array1, $ array2, $ level = '') {$ key = array_keys ($ array1); Forex currency ($ key as $ key) {$ value1 = $ array1 [$ key]; If (array_key_exists ($ k

c# - Creating xaml 'template' for multiple pages -

I am developing a Silverlight application for the first time, I have gone through some tutorials, but with this particular problem There can not be anything to help me. I have to go to a set of buttons to be present on all my pages (like a template) when a button is pressed, then slide me to ContentGrid and a new ContentGrid slide (related to being loaded with .xaml file). Is there any tutorial shown best to do this? From samples I saw, they only transit between two pages, so there is no problem copying the group of buttons on each xaml page. However, with more pages, copy-paste will be disabled every time the original layout is disabled. Thanks for any suggestions I create a master view and Used to make content as user control; In this way, I can swap / control user for the appropriate page, and I will have a constant header ... similar to the master page in ASP.net. I'm sure there are other templates too; I do not know about everything available for Silverlight ...

django forms - clean method for validation -

I have the following categories of which the clean methods ... class SOFIATMUserLogin (form): user name = forms. Kharefield (label = 'username') password = forms. Kharefield (label = 'password', widget = forms. Password input) def clean_Username (self): user = self.cleaned_data ['UserName']: Except exceptions SOFIALogin.objects.get (UserName = User): forms.ValidationError ('User Name Invalid ...') def clean _Password (self): upass = self.cleaned_data ['password'] In the clear password method, I want to know whether the password is correct for a valid user name ... I need to get the user name value ... how can I get it in the pure password method ... please help If I understand your question, then you just need to: self.cleaned_data ['username']

c++ - How to const declare the this pointer sent as parameter -

I want to declare this indicator as an argument. Fixed zero class :: func (const other class * otherClass) {// To read the use of other class pointer, but do not write it. } It is being called in such a way: zero other class :: fenc () {class :: func (this); } This does not compile the nose, if I do not declare another class pointers, then I can change it. Thank you. You can not define constrained square memberv functions like this: Fixed zero class :: func (const OtherClass * otherClass) {// to read other class pointer but not to write it. } The function must be declared declare, and then the function definition looks: zero class :: func (const other class * OtherClass) { // read to use another class indicator, but do not write it. }

python - Resident Set Size (RSS) limit has no effect -

2.6.32-22-Machine running Ubuntu 10.04 comes with the following problem: Resident set of any processing There is no effect in size (RSS). I currently set limits in Python with the following code: Import Resources # (100, 100) (soft, hard) range is ~ 100kb. Resource.setrlimit (source.RLIMIT_RSS, (100, 100)) memory_sink = ['a'] * 10000000 # should be unsuccessful list, memory_sink, every time I succeed Checking the use of RSS with the top, I can easily get the process of using 1GB RAM, which means that the limit is not working. Did the RSS not work with this kernel or distro? If it helps, then the resource .RLIMIT_NPROC (User Process Limit) works. getrlimit manpage form: / P> resident set of RLIMIT_RSS process Specifies the range (in pages) (number of virtual pages residing in RAM). This limit is only available in Linux 2.4.x, x & lt; 30, and only affects the call to specify madvise (2) MADV_WILLNEED It seems that this is not supported on Linux kernel

html - How do I get Asp.net MVC BeginForm to add closing tag correctly? -

I think something is clear, but it can not see how it is. My problem is that the closing form tag for BeginForm is not being added to my markup. I am looping through a collection and creating a form for every item, but the form Are not properly closed i have any suggestions? Thanks & lt;% foreach (Miscellaneous items in the model) {%> Use of & lt;% (Html.BeginForm ("EditUser", "Users")) {%> & Lt; TR & gt; & Lt; TD & gt; & Lt; Input id = "contactID" type = "hidden" value = "& lt;% = item.ContactID%>" / & Gt; & Lt;% = item.Email% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;% = item.Market.MarketName% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt;% = item.ContactType.ContactTypeName% & gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Input type = "submit" value = "edit" /> & Lt; / TD & gt; &a

wireless - Gobi 2000 WWAN Adapter C# SDK -

We have some software that is running on a mobile device (Panasonic Bookbook) on Windows 7, Need to start a 3G connection. The WWAn adapter in question is a Gobi 2000. Is there any way to directly control the adapter from the net or should we return to Windows to begin the connection (battery life is important) as necessary. You can get SDK from you Did not try to see that How is it good yet?

iphone - Always center UIView -

I have a small UIView that should always appear in the center of the screen. It works great for portrait mode but is not in the scenario. To use the UIView: myView.frame = CGRectMake ((visibleArea.size.width - MY_VIEW_WIDTH) / 2, (vieweria.areight - MY_VIEW_HEIGHT ) / 2, MY_VIEW_WIDTH, MY_VIEW_HEIGHT); MyView.autoresizingMask = (UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin); What could be any thoughts? Why not try myView.center = controller view.center

.net - what is it mean and it's output? -

Can anyone tell me what it means and this is output? this one. Net script is byte [] key = {0xda, 0x3c, 0x35, 0x6f, 0xbd, 0xd, 0x87, 0xf0, 0x9a, 0x7, 0x6d, 0xab, 0x7e, 0x82, 0x36, 0xa, 0x1a, 0x5a, 0x77, 0xfe, 0x74, 0xf3, 0x7f, 0xa8, 0xaa, 0x4, 0x11, 0x46, 0x6b, 0x2d, 0x48, 0xa1}; Byte read private static [] IV = {0x6d, 0x2d, 0xf5, 0x34, 0xc7, 0x60, 0xc5, 0x33, 0xe2, 0xa3, 0xd7, 0xc3, 0xf3, 0x39, 0xf2, 0x16}; This is only the declaration and initial of the byte array variables, filling them with the appropriate data . Then the key will be a byte array whose first element is 0xda, etc. The variables are read only, but that does not mean that they are irreversible - the code can still modify the data within the array; The variable read only means that they can not be made in the context of different arrays. There is no such output - as the snippet of code provided by you sets two variables.

c# - Some way of getting just the data part from a web service returning a DataTable? -

I am using an external web service that gives a DataTable. There are some problems with this first of all There are more than 20,000 columns, and the net crashes when trying to convert XML into the DataTable .net. I have to use the mono to make this work. The other problem is that it takes a lot of time to get all the columns information. The column "never" changes (and when they do, I already know about it). I just want to get the data share, and I want to load the schema from the local file. I am very skeptical that this is possible, but I thought I could just ask here.

Import excel files with image in php/mysql -

I want to create an import script which allows users to upload their excel files (extension is not required) Php in the application The application must reconstruct a list of items (so far). The difficulty in this matter is that there are images in Excel files ... I have read information about the Phfixel library but it does not say anything about the images. Any thoughts? You can use pictures. To import images: $ objPHPExcel = PHPExcel_IOFactory :: load ("MyExcelFile.xls"); Forex Currency ($ objPHPExcel-> getSheetByName ("My Sheet") -> Drawing Calculation (as a $ Draw) {if ($ drawing example PHPExcel_Worksheet_MemoryDrawing) {ob_start (); Call_user_func ($ drawing-> getRenderingFunction (), $ drawing-> getImageResource ()); $ ImageContents = ob_get_contents (); Ob_end_clean (); }} Then $ Image Contents will contain image data that you can output or save as a file. You can see this question: Images to access: All image ob

jquery - Django: How do I go about changing my simple app to use Ajax? -

I currently have a web page where the user records some data and then clicks the submit button. I process the data in views.py and then use the same DjCo template to return the original data and results. What I would like to do, it tries to feel a modern look and feel. You know as a thing, the page does not refresh, but the spinning disk displays until the results show up. I mean using Ajax? How difficult is it to use Ajax to modify a simple app like this? what does that involve? What are the best tools to use? JQuery? You just need to use AJAX Example: $ ('# form'). Bind ('submit', function () {$ .ajax ({url: $ (this) .attr ('action'), type: "post", data: {// form input}, success: function ) {// Code for updating DOM}}}) Return Return;}); This prevents the form from being reloaded using AJAX. I would advise you to take a look, there is a clear explanation for Ajax handling in this:

internet explorer - Error in jquery attribute selector and IE6-7 -

I am trying to implement a JQuery script to process some areas within an image map. I'm using $ ('area = size =' shift ']' 'as the selector to receive those areas. It is working fine in IE8 and Firefox, but it is working in IE6 or IE7 Not selection of elements. This is a test page that shows this problem. If it is a JQuery bug or I am doing something wrong I do not know that . & Lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Transitional // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitio Nal.dtd "> gt; top & gt; & gt; meta http-equiv =" content-type "content =" text / html; charset = UTF-8 "/ & gt; & Lt; script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type = "text / javascript" & gt; & lt; / scripts & gt; ; & Lt; script type = "text / javascript" & gt;! // & LT; [CDATA [$ (document) .ready (functi

How to use openSSL Library in the ANDROID application -

I am trying to embed the openssl library using Android NDK using Android NDK but I Do not know how to actually use it library and therefore anyone can tell me how to use it. Please send me a source code for my reference ....... Related: Have tried, this is a standalone build of openssl included in Android:

AJAX XMLHttpRequest Error Flag -

I gave a query to an address and I found readyState = 4 , and Status = 0 . Status = 0 and readyState = 4 , and then XMLHttpRequest after reading the document check. I have heard that the XHR editor said that the error flag mentioned in the device is an internal implementation variable Can not reach consumers. In other words, you can not see the "Error flag".

php - Questions regarding PHPUnit mock feature -

Can someone provide me a reference for a good PHPUnit fake guide? One does not seem to be sufficiently detailed, I am trying to study PHPUnit by reading the source code, but I am not familiar with the word matcher, invocation motors, stub returns etc. I need to know about the following: 1) For many calls to the method of a counterfeit How is expected, but each brings a different set value back? $ tableMock - & gt; Hopefully ($ --- (exactly - 2)) - & gt; Method ('Find') - & gt; Will be ($-this-> return value (2)); // I need a second call to return different values ​​ 2) The method of the mock object with a call How to expect parameters in many ways? [ Note: All code samples from linked sites, follow links for more Make a complete explanation. ] return different values ​​ (current) PHPUnit Documentation suggests or: $ stub-> ($ This- & gt; none) - & gt; Method ('doSomething') - & gt; ($ - this-> return ca

hyperlink - jquery accessibility option -

What do you think of this code, from where it helps with some lazy people :) Given that most links have a title similar to their text ... then tell me why any of you have such a thing? Then we can tell w3school to ticked a box. Prefix your variable with the var statement to prevent it from being global globally. Your whole thing can be simplified in: $ ('a: not ([title])'). Attr 'title', function () {return $ (this) .text ();}); ( text () over html () ).

ipad - iphone: how do I obtain a list of all files with a given extension on the app's document folder? -

I have saved all my files using it like this NSString * fileName = [NSString StringWithFormat: @ "% @. Plist", myName]; NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, yes); NSString * document directory = [path item overindexx: 0]; NSString * appfile = [document directory stringbappingpontcontent: filename]; [MyDict writeToFile: send an atomic app: yes]) // Where myDic is a dictionary that contains the value of all the parameters that I want to save. All these files were saved with the .plist extension. There are several JPG and PNG files in the same directory. Now, I have all on that directory. How do I get a list of Plist files? You can use the following calls to receive a given The list of all files in the path that was followed, and then re-run through any filing list with the .plist extension: NSDirectoryEnumerator * dirEnum = [[NSFileManager defaultManager] EnumeratorEightPath: DocsDir]; NSString * file

java - from OutputStream to a File Stream -

I want to save my DOM document as an XML file. I follow this tutorial: So, this is my code: ... transformerfactor tFactory = transformerfacture New Instance (); Transformer Transformer = TFTC NEUT Transformers (); DOMSource Source = New DOMSource (Doctor); StreamResult Results = New Stream Result (System.out); Transformer. Transform (source, result); But instead of system.out , I want to save a file in the result. how can I do this? Use New StreamResult (New FileOutputStream (.. .)) But you might want to use the Writer , so that you are output to encoded characters, as long as StreamResult Unicode encoding, say UTF-8, contained.

c99 - Flexible array member in C-structure -

सी-स्टडी अनुभाग 6.7.2.1 से उद्धरण, struct s {int n ; डबल डी []; }; यह एक मान्य संरचना घोषणा है। मैं इस तरह के वाक्यविन्यास के कुछ व्यावहारिक उपयोग की तलाश कर रहा हूं सटीक होने के लिए, यह डबल तत्व को दूसरे तत्व के रूप में रखने से कैसे अधिक या कम शक्तिशाली बना सकता है? या क्या यह दूसरा मामला है 'आप-क्या-क्या-में-कई-तरीकों'? अर्पन जवाब ठीक इस सवाल त्वरित जवाब यह है कि इस ढांचे में संरचना के बाहर एक सरणी के बजाय एक संकेतक की बजाय संरचना के अंदर डबल सरणी शामिल होगी। एक त्वरित उदाहरण के रूप में, आप इस उदाहरण के रूप में अपनी संरचना का उपयोग कर सकते हैं: struct s mystruct = malloc (sizeof (struct s) + 5 * sizeof (डबल)); S.n = 12; एसडी [0] = 4.0; एसडी [1] = 5.0; एसडी [2] = 6.0; एसडी [3] = 7.0; एसडी [4] = 8.0; और इतने पर - आप के बारे में ध्यान देने वाली सरणी के आकार को आवंटन में शामिल किया गया है, और फिर आप इसे किसी भी सरणी की तरह उपयोग कर सकते हैं। आमतौर पर इस तरह की संरचना में संरचना के भाग के रूप में आकार होता है, क्योंकि + प्रकार की सरणी के माध्यम से s को

Filtering model results for Django admin select box -

I am just starting playing with Django today and so far it is not difficult to do simple things. What I'm struggling with is the StatusTypes model that is filtering a list of status types: StatusTypes (models.Model): Status = models.CharField (MAX_LENGTH = 50 ) Type = models.IntegerField () DEF __unicode __ (self): return self.status class meta: db_table = u'status_types' In an admin page I need all the results where Type = 0 and in the second, I will need all the results where type = 1 so I do not restrict it from within the model And I would know about it? Edit: I should have been a bit clearer. I have a model "unit" in which there is a foreign key for StatStamps, the I models are as follows: class StatusTypes (models.Model): position = models.CharField (MAX_LENGTH = 50) type = models.IntegerField () DEF __unicode __ (self): returning self. Position class meta: db_table = u'status_types' square unit (models.Model): name = models.CharFiel

C# Lambda Problem -

Maybe something simple, but as I'm new to Lambda, the problem is to avoid me: M = & gt; M.contactID == Contact ID & amp; Amp; M.primaryAddress == True & amp; Amp; (M.addressTypeID == 2 || m.addressTypeID == 3) I tried to use that Lambda expression but I found an invalid operator. Edit: The concurrent SQL query will be: SELECT * contacts WHERE contactID = 3 and primaryAddress = 1 and (addressTypeID = 2 or addressTypeID = 3) I have a repository function defined like this: Public e Single (expression & lt; Funk & lt; E, bool & gt; & gt; where) {Back to ObjectSet. Single & lt; E & gt; (where); } I am passing the lambda expression above this function: myRepository.Single (m => m.contactID == contactID & Amp; Amp; m.primaryAddress == True & amp; amp; amp; amp; amp; (m.addressTypeID == 2 || m.addressTypeID == 3)); If you get a invalid operation exception The most likely reason is that there are more than

sql server - Synchronizing an ERWin model with a Visual Studio 2008 GDR 2/2010 db project -

I look for options to get our huge collection of DB objects in many DB source control (TFS 2010) I am here. Once we succeed here, we will work towards preparing our clerical script for a particular DB change through TBS Build. The problem is that our data architecture group is responsible for maintaining DB objects (except SP), and they work in a model-centric process, what does this mean by ERWin They maintain DB through ARVin models, and generate changes used to leave those changes. To achieve our goal of getting DB objects (not just ERVIN models), in TFS, I believe this is the best option to do this through visual studio DB projects. is. What I can tell, there is very little urgency for CA to continue supporting integration between ERWIN and Visual Studio, which does not work as a Visual Studio 2008 DB Ed. GDR If I have been misled in this regard, please do not hesitate to set me straight. A possible solution is: Changing the ERWIN model. Take the elevator script gene

What tools does your company use to manage application performance of asp.net applications? -

I'm not talking about application proformors or debuggers, but more specialized in managing applications in production environments. . Therefore essentially monitor, identify obstacles, deploy fixes. . We also use good old performance monitors for monitoring database connections, memory consumption and CPU utilization.

c# - Applications of concurrent queues and stacks in .NET 4 -

.NET 4 includes new concurrent data structures, but there are clear applications in the Bags and Dictionary collections but I do not have the cue and stack data structures No usage is visible for this. What are people using for this? In addition to this, I have found that many allocation of design based on linked lists arises and it destroys scalability. It is amazing that the only purpose of these collections is multicore programming. Is this an underlying limit or do they just apply badly? While addressing the second part of your question, you are quite right though that though. Concurrent compilation deployments in 4.0 are trying to be lock-free, yet they sit at the top of the non-lock-free memory allocation subsystem. Memory Management All lock-free data structures: Here's a good presentation on the state of the art: The bottom line is that this area is very progressive, so probably Not quite ready to join, such as detailed deployment production platforms. met.

html - IE display problem -

I have a page, and I just added paging it, but IE 7 & amp; 8. When I add endorsement code echo "& lt; div class = 'pagination' & gt;"; Echo $ endorsement- & gt; GetPageLinks (); Echo "& lt; / div & gt;"; It breaks layout in IE anyway, I have seen it completely and I did not know what is wrong there. Oh, and its CSS div.pagination {text-align: center; } Div.pagination a, div.pagination span {padding: 5px; Display: Inline-block; } The page URL, this index is on the page, if you can take a look, it would be good. It is such that it appears in IE8 - FF - not known Whether or not it will fix it, but you have an attachment tag here: & lt; Div class = 'endorsement' & gt; & Lt; Span & gt; 1 & lt; / Span & gt; & Lt; Span & gt; | & Lt; / Span & gt; & Lt; A href = "/ index.php? Page = 2" & gt; 2 & lt; / A & gt; & Lt; Span & gt; | & Lt;

.net - Programatically creating a Site Workflow in SharePoint 2010? -

I am trying to create a new site workflow, but not through SP Designer or Visual Studio. Instead, I'll need to make it completely by code (the argument is customizable and dynamic - initial form or conditionals will not help too much). Do I use .xml and .rules files to create it? Or is there an API to design workflows? Not sure if you can not create a workflow through Visual Studio Do you mean that you do not want to use Visual Studio Designer, which is part of 2010? Or do you want to create a declarative workflow without code in 2010? To allow for site workflows and more, there is an API for better workflow than 2010. More information is that the code behind the functionality of APIs generally requires certain types of functionality. If you want, you can use the API to create a complete workflow in the code. Although in my experience this designer is very easy to use because it wires a lot of incidents and helps you track different IDs of your need. If you want

java - Can Apache Solr output HTML instead of XML? -

The question is simple - we have a sample / test solar app that just responds with XML just what is that output An easy way to convert to HTML? Running Tomcat as an app server You need XSLT conversions in it some samples have been created which I believe ...

iphone - Navigation Items in UITableViewController are not appearing? -

I am displaying a UITableViewController inside the UITabBarController that is being presented as duly: < Pre> - (iBAction) arButtonClicked: (id) sender {// this is a suitable view controller ARViewController * ARViewController = [[[ARViewController alloc] initWithNibName: @ "ARVII controller" bundle: zero] autorege]; Leaderboard Table Viu Controller * LBVU Controller = [[[Leaderbottetable Wii Controller ALOOK] Init WhiteNIBN: @ "LeaderboardTable VUIC Controller" Bundle: Nile] AutoEques]; LbViewController.title = @ "Leaderboard"; ArTabBarController = [[UITabBarController alloc] initWithNibName: zero bundle: zero]; ArTabBarController.viewControllers = [Objects with NSArray array: ARVII controller, LBVU controller, zero]; ArTabBarController.selectedViewController = ARViewController; [Self-current model view controller: Animated Above Controller: Yes]; } DeDload I am setting Navigation Items to the ArViewController method in my view: - (zero)

Flex datagrid headerColor style is not working -

I'm trying to change the header grader header color by editing the header code type. I could change the header color except the font size, font family, etc. Will anyone help me about this? Thanks a lot. My code Mxml & lt; Mx: DataGrid id = "datagrid" creationComplete = "dataGrid_creationCompleteHandler (event)" Detector = "{} cityinfoResult3.lastResult" & gt; & Lt; Mx: column & gt; & Lt; Mx: DataGrud column header title = "detail" datafile = "extension" /> & Lt; Mx: DataGridColumn headerText = "name" dataField = "name" /> & Lt; / Mx: column & gt; & Lt; / Mx: data grid & gt; Style #dataGrid {headerColors: # ff6600; // Everything works except this one color // can not be converted? RollOverColor: # 33ccff; TextRollOverColor: #ffffff; IconColor: # ff0000; FontFamily: Arial; FONTSIZE: 12; DropShadowEnabled: true; AlternatingItemColors: # 330099, # 0000cc;

How to install SWIG on Linux centos -

I want to install SWIG on my Linux server to test some stuff. How to install it You have some options, the easiest way Investigate a binary package in CentOS's stores. sudo yum install swig.i386 Alternatively, you can download it from SWIG, ./configure, create, install, install Do it and you have done Of course, finding the right dependency can be very difficult, but with a little Google-fu, what do you want?

django - determining file changes in python -

I have a text file written on another server by another process that I want to see for changes Whenever there is a change, I want to read the new data and send it to the customer. Any suggestions would be valuable. Use of Django, Python Tazim If you are using Linux recently, you should consider it: goes into the details of Win32

sql - TSQL, select values from large many-to-many relationship -

I have two tables publishers and campaigns, there are many relationships with both countries, regions, languages ​​and categories. More info Publisher2categories have a publisher and category ID, which are foreign keys for identifiers columns in categories in publisher and publisher IDs. On the other hand, I have campaign membership with Campaign ID and Category ID columns, which are the foreign keys for campaign IDs in campaigns and category IDs that are re-identifying. P> thanks joining Publishers and campaigns and unions each individual multiple tables should leave you with all campaigns that are related to one of the publishers and camps Relationship tables. Select cc.CampaignID from dbo.PublisherSites2ountries PC INNER Join dbo.Campaings2ountries CC cc.CountryID = pc.CountryID Union Select PR.CampaignID dbo.PublisherSites2Regions PR Join INNER Dbo .Campaings2Regions cr on cr.RegionID = pr.RegionID ...

Syntax error in SharePoint calculated column formula -

Is it possible to debug SharePoint calculating column formulas? I'm really trying with simple SharePoint calculation formula = IF ([YTD] & lt; [budget], "OK", "not ok" ) . This is a Danish installation of SharePoint. I believe that fomula should look like this: = HVIS ([YTD] & lt; = [budget]; "OK"; "Not well ") but it leaves with only one syntax error or is not a supported error. I / I with all combinations of IF / HVIS / non-square brackets, comma / semicolon, single quote / Tried without double quotes, but nothing works. Formula = YTD & lt; = Budget works. Depending on the correct formular how the "Danish" installation is: - ( If there is a language used to create a site with the list then you need to use "HVIS" instead of "IF" If the regional setting is Denmark, As "separator", it is necessary to use "" because "," is used as a decimal point.

dojo - applying css to dijit button -

मेरे पास निम्न HTML और CSS है: & lt; बटन आईडी = "myBtn" dojoType = "dijit.form.Button" & gt; परीक्षण & lt; / बटन & gt; # आईबीटीएन {मार्जिन-बायां: 100px; } सीएसएस को 100px में बटन दबाएं। लेकिन चूंकि दिइजिट बटन के चारों ओर एचटीएमएल की कुछ अतिरिक्त परतों को लागू करता है, बटन को 100px padding मिलता है। संपादित करें: एक मिला (आईई 6-संगत नहीं) समाधान: [widgetid = myBtn] {मार्जिन-बायां: 100px; } ऊपर देखें :-) एक div के साथ चारों ओर और अपने स्थिर में उस div का उपयोग करें सीएसएस। मुझे लगता है कि एचटीएमएल के साथ सजाने वास्तव में विजेट या विजेट के टेम्पलेट में अधिक सेंकना करने की कोशिश करने से एक सरल समाधान हो सकता है।

php - mysql queries - performance loss by putting numbers in quotes? -

If a variable is always a number, is there a performance impairment by inserting it into invert commas? For example "select prod.product_name from prod.HD = prod.id = '$ id'"; No , you will not have any performance loss Inverted Take care of SKL injection by putting them inside a comma, but in such questions. Also keep in mind that performance means many things, you must be specific. Generally, it works fine.

html - What makes a web site 'finished' for delivery to a client? -

Sorry if this question has already been answered, and sorry that it is very subjective to understand, or for stack overflow Sorry. > I am distributing a site to a customer and I want to send them high quality HTML / CSS / JS, completely valid, accessible and etc. So I am compiling a list of things to check, and useful tools to do this, before I handle the code. Here is a partial list, but what am I missing? Check link for any broken links that I may remember - HTML Check for slow loading page elements CSS validation - - Firebug and plugin What's missing - if you were a customer, then what do you want to be sure is checked? I am thinking about the etiquette of things like comments, indentation and mining; Is this a good practice to fix this? And what else did I miss? Thanks :) Here's some famous checklist: < P> [edit] and second:

c# - Make a mouse pointer do a hyper-jump? -

मैं एक दोहरी मॉनिटर सेटअप चलाता हूं। मॉनिटर 1 से 2 (या इसके विपरीत ) अनावश्यक माउस आंदोलन की बहुत आवश्यकता है। मेरा विचार था कि एक अतिरिक्त माउस बटन (मेरे पास दो) का फायदा उठाना था और मॉनीटर 1 पर XY निर्देशांक से माउस हाइपर-कूद (स्टार ट्रेक के लिए क्षमा) क्या यह सी # के जरिए किया जा सकता है? निर्देशांक के संबंध में, दो मॉनिटर एक साथ एक बड़े क्षेत्र के रूप में चिपकाए जाते हैं। आप दोनों स्क्रीन के कार्यक्षेत्रों का निरीक्षण कर सकते हैं और कर्सर को सेट करके स्क्रीन। AllScreens एआरएआर का उपयोग कर सकते हैं। रचना आप चारों ओर माउस को स्थानांतरित कर सकते हैं।

How to read watermarks with Python? -

Is there any way to read metadata - watermark from image files with Python? If you mean that some "signature" image content has been added to the image, So to mark it, then not. Such watermarks are mixed with the original image and thus are an integral part of it. If you want meta-data information, yes, it can be read: but you do not specify whether you are programmatic, or what language or stack you are using or want to use.

android - To download a large file, which is a better approach to use either AsyncTask or Thread? -

I got a sample to download a large data file at the following link, it seems To be very good (I have not tested it yet). But I have read some posts on stackoverflow, as using the asynchronous class, Thread is not using the class as the above sample. What should I know, which one should I use to download a file? And if the Ascend Task is better, would you care about me on a sample code? Disclaimer: I am not the developer of Android, the answer comes from the general experience. Thread class is most suitable for longer running activities, not for asynchronous tasks. Except if you manage the pool of workers, but still the life of the thread is the same or is similar to the application. Think building the thread is a costly operation. Async Tasks and other assistants are usually for some solo activities, which you want to do in the background so that the app does not block it. They are generally well managed by the platform and are cheap. My opinion: If you want to load pages

inversion of control - IOC Container that can target .NET Framework Client Profile? -

हमारी वर्तमान WPF परियोजना पर, हम निन्ग IOC उपकरण का उपयोग करके निर्भरता इंजेक्शन प्रदर्शन कर रहे हैं। हम बेहतर डाउनलोड / इंस्टॉल अनुभव के लिए .NET Framework क्लाइंट प्रोफ़ाइल को लक्षित करना चाहते हैं। समस्या यह है कि Ninject लिबरारियों को संदर्भित करता है जैसे कि System.Web जो क्लाइंट प्रोफाइल में नहीं है। क्या कोई आईओसी कंटेनर सुझा सकता है जो .NET Framework क्लाइंट प्रोफाइल (3.5 या 4) को लक्षित कर सकता है? Autofac दोनों 3.5 और 4.0 क्लाइंट प्रोफाइल का समर्थन करता है।

jsp - nested <span> causes a new line -

After I think is a jsp page included, span class = "requiredFieldsMessageAsterix" & gt; * & Lt; / Span & gt; < Date of birth: <% @ is included in file = "/ jsps / include /requiredFieldsLabel.jsp"%> This works fine any new line However when I nest it contained within another period here as: Date of Birth:. & Lt; Span id = "includeMandatoryDOB" & gt; Include & lt;% @ file = "/ jsps / include / neededFieldsLabel.jsp"%> gt; & Lt; / Span & gt; This creates a new line I have tried to force the display: inline, but I did nothing (as I expected). There is no other style in the elements Is it on IE6, any thoughts? It works fine on Chrome, Firefox did not try but it is necessary for IE 6. What are you specifying DOCTYPE at the top of the document? Try & lt; DOCTYPE html public "- // W3C // DTD XHTML 1.1 // n" "" & gt ;! Is the parent enough to display

Using custom .jar's in your java project -

I import two jar from twitter4j-2.0.10.jar and mysql-connector-java-5.1.10-bin I am running a code on a server but it is not giving me one. I get one .. is; ^ Error in compiling I know that there is something with Java to identify my custom jar, but I do not know how to "see" Java. Any thoughts? You are required for Jawaak. A possible example (Windows, with your jar files in the folder named "lib"): javac -classpath lib / twitter4j-2.0.10.jar; Lib / mysql-connector-java-5.1.10-bin.jar MyClass.java This is a very accurate example, however, your environment may be quite different < / Div>

c# - Generic Func<> as parameter to base method -

I may have to lose the plot, but I hope someone can tell me in the right direction. What am I trying to do? I am trying to write a few basic methods that take up the funk & lt;> and so that these methods can handle all the exception handling. But allow the derived sections to specify which actions they want to execute, allow them. So far, this is the base class. Public abstract class servicebase & lt; T & gt; {Secure T settings {get; Set; } Secure ServiceBase (T setting) {Settings = Settings; } Public Zero ExecAction (Action Action) {try {action (); } Hold (exception exception) {new exception (exception message); }} Public Transit Exiffx & lt; T1, T2, T3, Trashlecht & gt; (Funk & lt; T1, T2, T3, TResult & gt; Function) {try {/ * What happens here?! Catch (exception exception) {new exception throw (exception message); }}} I want to execute an action in the derived class in the following manner (this works): Delete public zero (string app

php - Unset an array element inside a foreach loop -

इस सवाल का पहले से ही एक उत्तर है: < / P> 8 जवाब मैं एक सरणी तक पहुँच रहा हूँ एक foreach पाश के अंदर संदर्भ से, लेकिन अनसेट () फ़ंक्शन कार्य करने वाला नहीं लगता है: foreach ($ this- & gt; परिणाम ['सूची'] के रूप में & amp; $ पंक्ति) {If ($ this_row_is_boring) {अनसेट ($ पंक्ति); }} Print_r ($ this- & gt; परिणाम ['सूची']); // पंक्तियाँ शामिल हैं मैंने सोचा कि मैं विचारों को अनसेट नहीं कर सकता हूँ? धन्यवाद! आप संदर्भ (संदर्भ को तोड़ने) को खारिज कर रहे हैं आपको कुंजी के आधार पर अनसेट करने की आवश्यकता होगी: foreach ($ this- & gt; परिणाम ['सूची'] $ key = & gt; & amp; $ पंक्ति के रूप में) {यदि ($ this_row_is_boring ) {अनसेट ($ this- & gt; परिणाम ['सूची'] [$ की]); }}

java - customize web application root context in apache -

I have a web application abc.war and I want to deploy it on Apache statement. The problem is, by default, the path to this application is , but I want to use it as . I have the meta-INF file of the battle in the context.xml folder: & lt; Reference path = & quot; / Xyz & quot; DocBase = & quot; ABC & quot; Override = & quot; True & quot; / & Gt; The application war is located under ABCWAR % CATALINA_HOME% \ webapps and it is drawn in % CATALINA_HOME% \ webapps \ abc Folder. Also, while deploying, file reference from abc / META-INF .xm % CATALINA_HOME% \ conf \ Catalina \ localhost , but only reference path = / ABC In addition to this, I still see abc.war deployment while logging in the following line in Apache: Please anyone, please help, it does not work, or tells that Is there a way of deploying web applications on Pshaijh, such apps can be accessed from the optional route (which is not related to war-file name)? Thanks in a

git best practices for quickly switching between branches -

I have more than one active branch on which I have to work at the same time. Obviously, I can create two working directories with a specific branch according to a directory. Is the only way to switch from one branch to the other, without the "commit" and "checkout" the only way to do this? Yes, even if you committed instead of git stash if you are not ready to finalize your current work in progress.

flex - Event propogation whilst container is not initialised -

I have a canvas (it's called a drop box) that can drag and drop external files to users. After that I have a view stack, one of which is a canvas with a tile list. I have successfully managed to codify it so items are shown in the drop-down list on the drop box. I just catch the drag drop event (lets call this event a call) and listening to the tilelists to make a new dispatch (this lets call this event B). However, this only works if viewstack is selected for canvas with the selected index tile list, if the canvove is not selected with the tile list, the event listener will be able to design the full level (Event B) Tilewish is added, will not be called until the drag drop event (Event B) is transmitted. This means that before anything is firing, it also gives a chance to hear! I tried looping till the canvas was not fully prepared with the tile list, but it hangs the app. I have also tried to pass the incident to the canvas and store it locally, but when I try to reach

How does "Require SSL" affect ASP.NET MVC application lifecycle? -

I have an application that sets BeginRequest and EndRequest Taps up and thus tearing NHibernate sessions: BeginRequest + = delegate {CurrentSessionContext.Bind (SessionFactory.OpenSession ()); }; EndRequest + = delegation {var session = current session thing. Unbind; Session.Dispose (); Container.Release (session); }; This works fine when deployed in IIS, unless I check the "Need SSL" box. Once I do this, I get a session at NullReferenceException . Dispute () . I have not debug it yet, and yes, it is okay, but I am only curious about influencing the lifecycle of the request of "SSL Required". Do not have a session set on the server in these cases? Edit : To make it clear, I'm referring to the "required SSL" option in the IIS configuration for the application, for the controllers RequireHttps attribute. This one rejects my curiosity; I dug it slightly; Undoubtedly sorry for I have created a simple project that has created no

Selecting distinct records in a declarative linq data source? -

How can I select specific records when using a declarative data source? & lt; Asp: LinqDataSource ID = "dsColors" runat = "server" ContextTypeName = "Context" OrderBy = "Id, name" Select = 'New (Id, String.Concat (Color + Name as ID + ":" + Name) '' TableName = "color"> Hack it with a group. asp: LinqDataSource id = "dsColors" runat = "server" contextTypeName = "reference" orderbiz = "id, name" = 'New (id, string.connect (id + ":" + name "as ColorName) tabulation name =" color "groupb =' new (id, name) '& gt; & gt; / ASP: LinqDataSource & gt; ;

php - headers already sent displays after moving files from one server to another -

इस सवाल का पहले से ही एक उत्तर है: < / P> 11 जवाब मेरे पास एक प्रोजेक्ट चालू है Dreamhost की मेजबानी और यह ठीक काम कर रहा है, लेकिन जब से डीएच वास्तव में धीमी गति से चल रहा है तो मैं इस परियोजना को अपने नए समर्पित सर्वर पर ले जा रहा हूं। यह बात यह है कि जब मैं अपनी सभी फाइल को नए समर्पित (उबंटू 8.4) मुझे सारी जगहों पर चेतावनियां मिल रही हैं जो मुझे बता रही हैं कि हेडर पहले ही भेज दिए गए थे। पहली कोशिश मैंने फाइलों को एफ़टीपी के जरिए भेज दिया था: मेरे मशीन पर डाउनलोड करें, सर्वर पर अपलोड करें - काम नहीं किया दूसरा प्रयास था tar.gz पहले सर्वर पर फ़ोल्डर और इसे एक पर खुलाना, या तो काम नहीं किया मैंने एएनएसआई को घेरने की कोशिश की और वे w शुरू ओर्किंग, हालांकि मेरी अधिकांश फाइलें लहजे होते हैं इसलिए एएनएसआई मेरे सभी फाइलों के लिए एक विकल्प नहीं है I को यूटीएफ 8 की आवश्यकता है इसे ठीक करने के बारे में कोई भी विचार? मुझे यकीन है कि यह किसी प्रकार के कॉन्फ़िग होना चाहिए यदि utf-8 से बदलना 'एएनसी' यह काम करता है, आपकी फाइल में यूटीएफ 8-बीओएम है: या तो