Posts

Showing posts from September, 2010

How will you customise a html page so that it accepts multiple language? -

How do you customize an html page so that it can accept multiple languages? I will quote W3: encoding Probably use Unicode for content, database, etc. Always declare content encoding. Avoid escape (e.g. & amp; # xE1; & amp; # 225; or & amp; ; Aacute; ), whenever you can Announce the language of language documents and indicate the changes in the internal language Presentation vs Content Use style sheets for current information, limit words to markup. Images, animation, and amp; Examples. Examine translatability and improper cultural bias. Use a suitable encoding on both form form and server Support local formats of names / addresses, time / dates etc. Text authoring Use simple, concise text Use care when creating sentences from many strings. Navigation includes the language that is clearly visible on local pages or sites, using the targeted language on each page. For the right text XHTML, add the dir = "rtl" to the ...

nhibernate - Using DetachedCriteria to return generic list of non-AR type -

I am unhappy with my repository class and tried to execute a query with a different criteria. However, it does not seem that I have to set the result to transform the transformer into a non-AR type. Public Class Incident Repository {Public Fixed IList & lt; AuditReport & gt; GetAllIncidentsToAudit () {DetachedCriteria DC = DetachedCriteria.For & LT; Incident & gt; ("I") .SetProjection (Projections.ProjectionList () .Add (Projections.Property ("i.Id"), "IncidentId") .Add (Projections.Property ("l.Id"), "LocationId")) .CreateCriteria ("Location", "L") .Add (Expression.Eq ("l.PrimaryLocationFlag", "T")) .SetResultTransformer (Transformers.AliasToBean & lt; AuditReport & gt; ()); Return ActiveRecordMediator & lt; AuditReport & gt; .FindAll (DC); }} Public Sector AuditReport {Public Inc. IncidentId {get; Set; } Get public int location ID {}; Set; }} When I execute...

security - <? or <?php --- is there any difference? -

संभावित डुप्लिकेट: का उपयोग करने में कोई अंतर है & lt ;? ? ? ? ? का उपयोग कर एक php ब्लॉक को चिन्हित करने के लिए या का उपयोग करने के लिए ? अगर कोई नहीं है, तो कोई भी & lt ; Php ? .php के फ़ाइल एक्सटेंशन को आप किस प्रकार के कोड को देख रहे हैं, इसके बारे में बहुत सारे जानकारी दे सकते हैं। पहले को शॉर्ट-ओपन टैग कहा जाता है और दूसरा एक सुरक्षित खुला और नज़दीकी टैग है। आप short_open_tag सेटिंग का उपयोग करके php.ini में छोटे खुले टैग को सक्षम / अक्षम कर सकते हैं। संक्षिप्त टैग्स से बचा जाना चाहिए, पर एक नज़र डालें:

Autofac not passing same instance to resolved arguments in constructor -

मैं निम्नलिखित सेटअप सार्वजनिक वर्ग CommonClass: ICommonClass {} सार्वजनिक वर्ग SomeClass: ISomeClass {सार्वजनिक SomeClass (ICommonClass आम, IOtherClass otherClass) {}} सार्वजनिक वर्ग OtherClass: IOtherClass {सार्वजनिक OtherClass (ICommonClass आम) {}} // पंजीकरण builder.RegisterType & LT; CommonClass & gt; () के रूप में के & lt; ICommonClass & gt; () InstancePerDependency (।। ); builder.RegisterType & LT; SomeClass & gt; () के रूप में। & lt; ISomeClass & gt; () InstancePerDependency ()।; builder.RegisterType & LT; OtherClass & gt; () के रूप में। & lt; IOtherClass & gt; () InstancePerDependency ()।; मैं प्रत्येक कन्स्ट्रक्टर में समान तर्क को समान उदाहरण के लिए चाहूंगा, लेकिन कुछ क्लास का हल हो जाने पर आईकॉममन का नया इंस्टेंस बनाने के लिए। मैं इस समय कैसे हो सकता है। मैं उन्हें InstancePerLifetimeScope के रूप में पंजीकृत करने का प्रयास किया, लेकिन यह SingleInstance के रूप में ही काम किया। InstancePerDependency जब आप हर निर्...

jmeter - Stress test BlazeDS polling -

I'm looking for some guidance on stress testing BlazeDS Voting channels. I have followed this excellent article on using jmeter to test AMF messaging: But this is only for non-voting messages I can not generate AMF for all polling messages only - each sequential message is different. I am thinking that I am able to use the Beanshell Pre Processor to create AMF request Java Object, then send it as serial and post data. I also needed the Beanshell post processor to cancel the reaction of the binary AMF and passed some data on the next request. Did anyone have to go before something like this? I'm not sure what I'm trying to do, beyond the capabilities of the pre-post and post processor of JMT. Thank you, Stu There is a plugin for JMM that lets you record AMF messages To edit in XML, then to use them in tension test. You can put in variables (such as User ID, Counter) which will be replaced when delivered in XML. This is the response to the JMTator var...

Sending SMTP mail in SQL Server 2008 R2 Express -

मैंने कोशिश की: sp_send_dbmail लेकिन मुझे निम्न त्रुटि मिली: संदेश 15281, स्तर 16, राज्य 1, प्रक्रिया sp_send_dbmail, पंक्ति 0 SQL सर्वर घटक 'डेटाबेस के मेलबॉक्स' डेटाबेस की प्रक्रिया 'dbo.sp_send_dbmail' तक पहुंच को अवरुद्ध करता है क्योंकि यह घटक सुरक्षा कॉन्फ़िगरेशन के भाग के रूप में बंद है इस सर्वर के लिए। एक सिस्टम व्यवस्थापक SP_configure का उपयोग करके 'डेटाबेस मेल एक्सपी' के उपयोग को सक्षम कर सकता है 'डेटाबेस मेल एक्सपी' को सक्षम करने के बारे में अधिक जानकारी के लिए, SQL सर्वर पुस्तकें ऑनलाइन में "सतह क्षेत्र कॉन्फ़िगरेशन" देखें। मैंने भी इस कोड का उपयोग एसएमटीपी मेल SQL सर्वर 2008 R2 एक्सप्रेस: ​​ लेकिन मुझे निम्न त्रुटि मिल रही है: संदेश 15281, स्तर 16, राज्य 1, प्रक्रिया sp_OACreate, रेखा 1 SQL सर्वर प्रक्रिया को एक्सेस अवरुद्ध 'ऑल ऑटोमेशन प्रोसिजर्स' के घटक 'sys.sp_OACreate' क्योंकि इस घटक को इस सर्वर के लिए सुरक्षा कॉन्फ़िगरेशन के भाग के रूप में बंद किया गया है। एक सिस्टम व्यवस्थापक sp_configure का ...

java - Using MINA with Eclipse -

I downloaded the Java Alps IDE and started learning Java. I have a good experience with PHP, C, C ++ and AS3 programming languages, so I know the concept of OOP, now I have decided to know and use Java. I want to do some tests Apache's are examples of the Minna Framework but I still can not understand how to install Milli Framework with eclipse. First of all, I have tried to copy the entire MINA 2.0 RC1 directory in my work directory, but now how can I use the framework? Since I'm new to Java, I do not understand very well in the directory structure I have created a new Java project named "org.myself.server" because I think that This code is structured in Java. Then I created a package with the same name and class "testster" inside the package. I can do everything like code, compile, run and a charm inside the main function of the class. But how do I use MINA in my test server class? How can I import Mina and test the EchoBack Server instance? Y...

matrix based on vector and diagonal elements=1 using matlab -

How do I create the following matrix 1 0 0 k1 1 0 0 0 k2 k1 1 0 k3 k2 k1 1 k4 k3 k2 k1 1 Usage Please. Example vector = [1 2 3 4 5]; Change it with values ​​for% 1 [1 k1 k2 k3 k4] = toeplitz (vector, [0]] outside = 1 0 0 0 2 1 0 0 0 0 2 2 0 0 4 3 2 1 0 5 4 3 2 1 Edit My vector [k1 k2 k3 k4 k5], how do Can I apply tril or toeplitz? Using more convenient formulation of @ gnovice, you use yourVector = [k1 k2 k3 k4 k5]; Tril (toeplitz ([1 yourVector (1: 4)]))

sql server Restore Database -

Using the following script to restore a database backed up to my hosting account. Restore from Diskabase [XYZ] with Disk = N'E: Website Website Backup \ _db_backups \ XYZ.bak 'FILE = 1, Run N'XYZ' N'C : \ Program Files (x86) \ Microsoft SQL Server \ MSSQL.1 \ MSSQL \ Data \ XYZ.mdf ', N'XYZ_log to' N'C: \ Program Files (x86) \ Microsoft SQL Server \ MSSQL 1 \ MSSQL \ DATA \ XYZ.LDF ', N'sysft_XYZ to N'C: \ Program Files (x86) \ Microsoft SQL Server \ MSSQL.1 \ MSSQL \ FTData \ XYZ', Shipping, Change, Status = 10 GO The following errors are taking place Message 3634, level 16, state1, line 1 oper When you try the 'OpenForRestore' on 'Error 5' (Access is 'C: \ Program Files (x86) \ Microsoft SQL Server \ MSSQL.1 \ MSSQL \ FTData \ XYZ \ SQL.HDR' message 3156, Level 16, state2, line 1 file 'sysft_XYZ' can not be restored to 'C: \ Program Files (x86) \ Microsoft SQL Server \ MSSQL.1 \ MSSQL...

racket - Finding a prime number in Scheme using natural recursion -

How do I still do my own design program, but are successful in being trapped again. This time this question is 11.4.7: The function is not developed - luck is not - & lt; = I consumes a natural number [> = 1], i, and a natural number i, i use-no-divisible by & lt; = I to define the prime minister?, Which uses a natural number and determines whether it is dominant or not In the first part, I did not have much hard time: ;; A natural number [& gt; = 1] is either 1. 1 or ;; 2. (AD1N) where n is a natural number [& gt; = 1]. ;; Not-divisible by & lt; = I: N [& gt; = 1] N - & gt; Boolean (not defined) is not divided (litti; = iim) (cond [(= 1 1) true] [otherwise (conv ([= (remaining miles) 0) false] [Other (not-not divided and lieutenant ; = I (all 1i) M)])))) (not-divisible by & lt; = i 3 6); Expected: Incorrect (not-divisible by & lt; = i 6 7); Expected: True But I can not see how I can use a variable when using natural recursion. I...

Getting resized images inside Android buttons -

I want to design a table layout with icons and some big buttons with text. I've got some similar questions but not the same. My Simplified XML layout is: & lt; Table layout xmlns: Android = "http://schemas.android.com/apk/res/android" android: orientation = "vertical" android: layout_width = "Fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; TableRow Android: id = "@ + id / TableRow01" Android: gravity = "center" & gt; & Lt; Button Android: Text = "@ String / Telephone" Android: drawableTop = "@ drawable / phone" Android: id = "@ + id / button_phone" & gt; & Lt; / Button & gt; & Lt; Button Android: Text = "@ String / Help" Android: src = "@Drawable / Help" Android: id = "@ + id / button_help" & gt; & Lt; / Button & gt; & Lt; / TableRow & gt; & Lt; / TableLayout & gt; The icon p...

flex - How can I convert a PDF file to an image? -

I give users the ability to upload an image in my Air app, then displaying this image in image control I am But I have the permission to upload the PDF in the same way, so I have to convert the PDF into an image. I only meditate about the first page of PDF that they upload now What I'm doing: 1) User browses for a file with file reference control 2) User upload 3) I encode the image on MP3 and store it 4) I then load that base 64 in some way: Public function DecodeImage (b64String: String): Zero {var decoder: Base64Decoder = new Ba Se64Decoder (); Decoder.decode (b64String); Var imgLoader: Loader = new loader (); ImgLoader.loadBytes (decoder.toByteArray ()); ImgLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, decodedImageLoaded); } Personal Function Decoded Image Loaded (Event: Event): Zero {var imgLoader: Loader = (event.target as loaderInfo) .loader; Var BMP: bitmap = bitmap (imgLoader.content); ImgLoader.removeEventListener (Event.Complete, Loaded the decoded ...

ASP.net/C#: How compile classes in App_Code so that can be run from command line for unit testing? -

There are several class files in the episode in the ASPK website running in Microsoft Visual Studio 2005 Professional. To use the full unit test suite, I want to compile only those project-wide classes in one .EXE so that I can test them at night. I do How to create a separate C # Library project and how to include them on my website - but this is not desirable - I have the ability to fly Do not want the code changes in those library classes while running the website in the debugger. As far as I know the .NET debugger is not powerful enough, the code is not modified with automatic re-compiling on the page reload enough to modify the code in the included libraries. Therefore, I want my cake and will eat it, Command line unit tests of website class files in the App_Code directory Those class files Being able to modify / restart / debugger the web debugger. Is both possible? You should place the code in a completely different class library / assembly, then it wil...

html - IE6 expressions: getting a parent element's height -

मान लें कि मेरे पास यह मार्कअप है: & lt; div class = "foobar" & gt; ; & Lt; div शैली = "ऊंचाई: अभिव्यक्ति (यह parent.style.height + 'px')" & gt; & lt; / div & gt; & Lt; / div & gt; मेरी अभिव्यक्ति काम नहीं करती है, लेकिन आप शायद बता सकते हैं कि मैं इसके द्वारा क्या करने का प्रयास कर रहा हूं: मूल तत्व की ऊंचाई प्राप्त करें। कृपया, अगर आप जवाब नहीं दे सकते तो सवाल का जवाब नहीं दे सकते। यह एक बहुत, बहुत विशिष्ट बग के लिए है जो केवल IE को प्रभावित करता है या तो एक अभिव्यक्ति का उपयोग किया जाना चाहिए, या बग को ठीक नहीं किया जा सकता है। & lt; div वर्ग = "foobar" & gt; & Lt; div शैली = "ऊँचाई: अभिव्यक्ति (यह। पैरेन्ट नोड.ऑफ़सेट हैइट + 'पीएक्स')" & gt; टेस्ट & lt; / div & gt; & Lt; / div & gt;

java - SAXParserFactory URL Timeouts -

मेरे पास निम्न कोड का कोड है: प्रयास करें {SAXParserFactory spf = SAXParserFactory.newInstance (); SAXParser sp = spf.newSAXParser (); / * हमारे द्वारा निर्मित SAXParser के XMLReader प्राप्त करें * / XMLReader r = sp.getXMLReader (); // यह एक्सएमएल को संभालता है और एंट्रीज़ सरणी XMLHandler हैंडलर = नए एक्सएमएलहैंडलर (); // रजिस्टर घटना संचालकों r.setContentHandler (हैंडलर); स्ट्रिंग यूआरएल = "http://news.library.ryerson.ca/api/isbnsearch.php?isbn="+ISBN; r.parse (यूआरएल); रिटर्न हैंडलर.गेटएन्ट्रीस (); } यह कोड ज्यादातर समय ठीक काम करता है, लेकिन कई मामलों में एक उपयोगकर्ता 100 + संबंधित आईबीएन (उदाहरण के लिए हैरी पॉटर के रूप में) के साथ एक लोकप्रिय पुस्तक के आईएसबी में प्रवेश कर सकता है । जब ऐसा होता है, तो एक्सएमएल फ़ीड टूट नहीं जाती है, लेकिन लोड करने में अधिक समय लगता है (चरम मामलों के लिए अधिकतम 30 सेकंड तक)। जब पृष्ठ लोड हो रहा है, तो यह कनेक्शन को कभी नहीं गिरता है, बस इसके समय लोड हो रहा है। क्या फ़ंक्शन के लिए समय समाप्ति समय बढ़ाने का कोई तरीका है? धन्य...

uiscrollview - Scrolling the iphone simulator -

I am starting the iPhone development, and I want to scroll in the iPhone simulator. How can I make it possible? Can anyone give me the code for this? you ScrollViewSuite for example the applet that gives the scroll view Let's show them what they can do in different ways. More info here:

visual c++ - C++: Check if bmp file is legit -

I am using C ++ (Visual Studio) and I have to check that any .bmp file is legal ( Some names do not change by changing the virus .xa) before the user can share it with other users on the Internet using their application. I am using DirectX 2D rendering and boost framework. Is Any Bitmap Valid? Thank you. You can try to load a bitmap with Windows LoadImage , Which must be unsuccessful for the faulty bitmap. As others have mentioned, you can check the bitmap header and sanitary like file size (depending on what you find in the header). It will be faster than LoadImage , but there are many legal variations of the bitmap header for writing and testing. Probably, LoadImage is well tested because it has been forever.

c# - Add/modify SQL table -

This is the best way to code the requirement: The rows have multiple key indices (PlantID, Year, Month) in a SQL table. The row may already exist, update or delete an existing line. The row contains approximately 150 fields, which are the other SQL tables. In trying to determine the easiest way to complete, I would like to use that SQLDataAdaptor, any thoughts would be appreciated. SQL queries are easy: Delete existing rows. Delete table WHERE plantID = "..." and year = "..." and month = "..." and now Enter a new one: INSERT (PlantID, Year, Month, Other_Col_1, ..., other_col_N) in the table of prices ("...", "...", "... "," ... ", ...," ... ")

pinax - Non local connections for django project server -

मैंने कमांड python manage.py runerver 0.0.0.0:8000 यह सर्वर शुरू हुआ, लेकिन जब मैं नेविगेट किया, तो मेरे वेबब्रोज़र कनेक्ट नहीं होता। मैंने अपने आईफोन सफारी ब्रशर के साथ भी कोशिश की और मुझे एक ही चीज़ मिली। मै मैक ओएस एक्स 10.6 का इस्तेमाल कर रहा हूं और मेरे राउटर से इंटरनेट से कनेक्ट हूं। कैसे इस पर कोई सुझाव गैर-स्थानीय कनेक्शनों की अनुमति देने के लिए, ताकि मेरे दोस्त मेरी परियोजना का प्रयास कर सकें? 1) अपनी फ़ायरवॉल 2 ) अपने कंप्यूटर को पोर्ट 8000 पर अपने रूटर फ़ॉरवर्ड कनेक्शन सुनिश्चित करें

Monitoring TeamCity build process -

Is there any way to see the output of TeamCity Build agent actually? I suspect that one of the build steps shows a dialog that prevents the building process. But entering the build agent computer remotely does not give any indication that what is currently happening. The build log prevents the process, but it is not showing an error message. The actual command is an invitation to sigcheck.exe (from SysInternals). (I tried to run this command locally, and it showed a Windows interface. I think there is some license information in it.) Because the agent is typically run as a service dialog, because it will not be displayed. I hope there will be a command line option for sigcheck.exe that closes the UI interaction.

sql - How to avoid ODBC parameterization for the question mark character ? within literals and comments? -

Am I running on an issue where my question marks are characters? 'There is a problem within my SQL script within the comments when I run these status through an ODBC connection using the Visual FoxPro SQLEXEC function, then seen these letters as prompts for parameters and VFP values going. What are my options for handling question marks when SQLEXEC? I'm hoping how I can be certain how to turn off parameterization or alternatively avoid some of these letters before passing them as commands. So far, I have not found any evidence of this kind of solution, it seems that I may have to get all the comments tab which is undesirable because they generally make statements for stored procedures and we want to keep these comments safe. . I am hoping that there can be a more soothing solution to completely remove any comment. It appears that it may be that the question mark characters in the SQL command when facing the comments Is there no relation? Usually represent the parame...

tags - Is it possible to angle a input field and textarea with CSS? -

OK boys! I have found one for all of you Has anyone thought how a text field in a form is an angle? I am completely tired of horizontal areas directly and I want to experiment with something different. I do not want to use Flash. Please take a small tilt action. Cheers Eric You can describe something as described. From that site: For WebKit and Firefox (as of 3.5), you can take advantage of the proposed change property to handle rotation. Each browser requires its property prefix for now. -WebKit-transform: rotate (-90 degrees); -MOZ-TRANSFORM: To rotate (-90 degrees); For IE, When it comes to effects in Internet Explorer, I can say Am) in using filter Despite being misguided, there is a filter called Basic Image, which provides the ability to rotate any element of the layout. Filters: Prozed: DxImG Transformer Microsoft. BASIC IMAGE (rotation = 3);

c++ - Unicode, char pointers and wcslen -

I am trying to use CPW Library for some graphics things. I got it installed, and I think there is a problem in compiling. That is, in String Header, it provides support for Unicode through Defined (Unicode) . There is no such thing as a wstrlen on the Windows epic, so I tried to change it, but now it gives me it. And the error because it tries to convert it to a four * wchar_t * I am afraid that if I use it in any way, then some more punch. What do you think of the StackWareflow? You may wcslen to before inserting the written header Wstrlen can be defined as: #define wstrlen wcslen #include "cpw.h" you get the error He may call you one of those tasks because of going through char * .

App Engine (python) skips webapp middleware (like Appstats) in production but works fine on dev server -

I am using an App Engine dragon to host an app and I prefer to use apps and some other libraries Middleware which is However, when I set up middleware through appagyn_config (as shown below) it works on dev server but not in production. Apestats and gesens work as a charm in the dev server and do not work at all in production. Here is my appenne_config, which is located in my root / SRC dir: session from com.impactpy.gaesessions. SessionMiddleware COOKIE_KEY = 'Try good def webapp_add_wsgi_middleware (app): google.appengine Ext.appstats recording app = Sessions Bee (app, cookie_key = COOKIE_KEY) app = recording. Appstats_wsgi_middleware (app) return app Any ideas? UPDATE So I'm bringing this back up because I have not taken any advantage to reuse it. I removed the appengine_config.py: from the recording def webapp_add_wsgi_middleware (app) with google.appengine.ext.appstats: app = recording. Appstats_wsgi_middleware (app) returns app and include in app.yaml ...

c# - Error when trying to create a partial class -

Image
I've created an area square using Linq-to-SQL. Now I want to make a partial square of the same name so that I can apply verification. Any help error 1 can not change the indirect type? ' System.Data.Linq.Table & LT; SeguimientoDocente.Area & gt; 'to' System.Linq.IQueryable & lt; SeguimientoDocente.Models.Area & gt; 'C: \ Users \ Sergio \ Documents \ Visual Studio 2010 \ Projects \ SeguimientoDocente \ SeguimientoDocente \ Model \ AreaRepository.cs 14 20 SeguimientoDocente Using the system ; Using System.Collections.Generic; Using System.Linq; Using System.Web; Name SeguimientoDocente.Models {Public Category AreaRepository {Private SeguimientoDataContext db = new SeguimientoDataContext (); Public IQueryable & lt; Region & gt; FindAllAreas () {return db.Areas; } Public Areas GetArea (int id) {return db.Areas.SingleOrDefault (a => A.ID == ID); } Add Public Zero (Area Area) {db.Areas.InsertOnSubmit (Area); } Public Zero remova...

opengl matrix rotation quaternions -

I am trying to do simple rotation of a cube about X and Y axis: I want to always rotate the cube on the x axis and rotate the amount of x, and the X axis rotates independently from the y amount of quadrilateral ago I had disappointed: glRotatef (x, 1,0,0); GlRotatef (y, 0,1,0); then but it rotates on the first x, then moves on y, to rotate the x access independently on y. I started looking for a quadrilateral, so I tried: Quarteran rotation 1; Rotation1.createFromAxisAngle (0,1, 0, globalratitude); Rotation1.normalize (); Quaternion rotation 2; Rotation2.createFromAxisAngle (1,0, 0, global rotor x); Rotation2.normalize (); GL Float Matrix [16]; Quaternion Q = Rotation 2 * Rotation 1; Q.createMatrix (matrix); GlMultMatrixf (matrix); It's almost perfectly ok to do 2 consecutive glRotates what was accomplished ... so I guess I'm not missing a stage or 2. Is there a way to go quatnions or should I use something different? And if there is a way to go quadri...

java - BigInteger.pow() with a BigInteger -

I'm bound to throw an exception when the bigteger is greater than integer. MAX_VALUE This will not allow me to throw that exception for the case of the ferries. I'm not sure how to cross it in the BigInteger.Pow () method when the value of the large object is very large, how to throw an exception. Thanks in advance Here is the Postfix Method: Public BigInter evalPostfix (String Postfix) {BigInter A, B; Stack stack = new stack (); (Int i = 0; i & lt; postfix.length (); i ++) {if (this.isOp (postfix.charAt (0)) Throw new arithmetic exception ("deformed postfix expression"); Switch (postfix.charAt (i)) {case '+': a = (BigInteger) stack.pop (); B = (BigIntega) stack.pop (); Stack.push (b.add (a)); break; Cases '-': A = (BigIntega) stack.pop (); B = (BigIntega) stack.pop (); Stack.push (b.subtract (a)); break; Case '*': a = (BigIntega) stack.pop (); B = (BigIntega) stack.pop (); Stack.push (b.multiply (a)); break; Case '/': a ...

email - Change mailed-by header in PHP mail -

I have configured several headers in the mail () function, sender's name, and other fields But, in the mail-in field in Gmail, I see the hostname of my server, even if I have set the mail to headers apart ... can it change Is there a way, or am I specifying the wrong header to affect the change? Existing Headers: From: no -reply@example.com Mail-In: example.com Ex-Mailer: Example /1.0 If you send the sender headers, then the problem will be easy to diagnose. But the header must be "x-mailer", which can be set to the mail-in field, as far as I know. If that does not work, then post your existing headers and we can help you / better. Edit: By doing some further research, the 5th parameter with the "-f" flag looks like this: mail ($ $, $ message, $ body, $ header, '-fnoreply@yourmailer.com'); What is likely is an email address, so you have to see which values ​​it accepts. I have received this information. But reading that wha...

c# - WCF soap service - add http headers -

I am using a soap web service in Visual Studio using the service reference interface. The service requires that I include some HTM headers in the authentication request. How can I go about adding HTM headers for the request, is the webrequest busted at some points in this process?

command line - grep from bottom to top of a file -

What is the option with grep or egrep, through which we can find a file from top to bottom generally they work on top tac your.log | Grep stuff

F# multiple when guards using grouping patterns in pattern matching -

Why does this code work, and how does it work? id1 = = 0 with match P1, P2. | Fluid, particle id 2, when id = id2 | Interface _, particle id 2 when id = id2 - & gt; DoSomething () ... So what are the different ways when there are guards in pattern groups? When you can protect per arrow / result, something like this will happen: id 1 = 0 with match P1, P2. Fluid, particle id 2 | Interface _, particle id 2 when id = 1 id 2 - & gt; DoSomething () | _ - & gt; DoSomething () (In this case, the note should bind the same set of both items or identifiers, so that no identities can be left in both the positions) or optional Add another action / result as follows: with match P1, P2. Fluid, particle id 2 when id = 1 = id 2 - & gt; DoSomething () | Interface _, particle id 2 when id = 1 id 2 - & gt; DoSomething () | _ - & gt; DoSomething ()

How to configure pam in linux such that the login id and password should not be same? -

How to configure Palm in Linux, like login ID and password should not be the same? Forward the passwdqc module using Ubuntu: $ Sudo apt-get install libpam-passwdqc Then, after modifying the /etc/pam.d/common-password file, modifies it by adding the next line: password expected pam_passwdqc.so Config = / Etc / passwdqc.conf and add it to the /etc/passwdqc.conf file: same = deny

jquery - Modify HTTP Headers for a JSONP request -

I am using jquery to create a request for Twitter Search API. I am using jsonp, as is necessary for cross-domain requests, however, the Twitter API specifies that you should set up a unique user-agent for these requests, and if you do not limit your requests Do it. The problem is, I do not see any way to set this header through jquery. This is the code I am using: $ Ajax ({url: 'http: //search.twitter.com/search.json', datatype: 'jesnp', type: 'received', data: {q: 'twitter'}, success: work {data} Warning (data results);}}); I have tried to use the first method method, but it appears that this event is not firing. Can anybody come in any way to solve this problem? Thank you. works by adding a script element to the JSON page with padding, src Attribute the URL of the web service along with the attribute. The web service then returns a script that contains data wrapped in a callback function, when the script is full parsing. This is no...

sqldatareader - VB.NET 2010 and MySql - handling DB NULLs for lazy people -

I want to initialize a class with data coming from MySq db. Some fields may be empty: MySqlDataReader = ... as a slow drop in the form of new items (dr.GetInt16 (0), Dr.Getstrings (1), dr GetString (2)) Suppose the last two fields can be zero, then calling GetString on that field causes an exception. I can definitely write the code to test for zero before getting each field: If the string as dim field 1 (dr. IsDbNull (1)) Field 1 = 'None' or even "Other Field 1 = Dr. Getstring (1) But if you have many fields then this is "ISS" nightmare. I For this purpose I would like to type it more IIF write the VB function again, to avoid being inserted in such a way: Namespace Utility Public Share Function IIf (TK) (ByVal condition as boolean, bevel iftrue t As if, byval iffalse t) as if the condition returns then if enter or return iffalse end even Roh so that I can write something: dim item as new item (dr.GetInt16 (0), util.iif (Dr. IIf was...

Single click and double click on the same Image control(wpf) -

I am trying to differentiate once by clicking and double clicking on the WPF image control. Unfortunately one click is removed first, so double click is ignored. If you use the mouseDown event instead it is an asset in EventArgs. This allows you to know how many times the user has clicked on the control within the system's double click period of time. You may use it to apply your logic to make decisions between double and single clicks. / P>

python - Get angles in the range -180 to +180 -

Before I start thanking everyone. Through my application, I am in angles when I run the Python script, the value is typically collected in the variable. Suppose that the range is -180 to 180. And I got an angle in the form of -180. According to the requirement this should be a +/- 1 degree window; i.e; Between 179 and -179 How will I check if falling in that border? Angle = -180 tolerance = 1 (in degrees) If (180-1) & lt; = -180 & lt; = (-180 + 1): # statement angle -1 = -179 tolerance = 1 if (-170-1) & lt; = -179 & lt; = (-179 + 1): # statement angle 2 = 179 tolerance = 1 if (17 9-1) & lt; = 179 & lt; = (17 9 + 1): # statement Will this work for all angle combinations? What do you think? if -180 & lt; X & lt; 180: # Something This category covers -179 and 179, but not -180 and 180.

How to set full image in Absolute Layout in android -

I have set an image in AbsoluteLayout but it will not appear in full screen on G1, but when I use the same app Let's run it is working properly. I have setcontentView (new test (this)) in my activity class. Test is my complete goal class. My code looks like this: The public class test extends AbsoluteLayout {public exam (reference reference) {super (reference); Last Relative Layout RL = New Relative Layout (Reference); Last android.widget.RelativeLayout.LayoutParams Parameters = New Relative Layout. Layout param (layout parama.philpaint, layout parama.philpaint); Rl.setLayoutParams (parameter); This.addView (RL, new LinearLayout.LayoutParams (Layout Perm. FILL_PARENT, Paramá layout FILL_PARENT)); ImageView mImageView = New ImageView (reference); MImageView.setImageBitmap ((DataStorage) context.getApplicationContext ()). GetImage ()); This.addView (mImageView); }} Can anyone tell me why I could not find the full image on the G1 mobile screen? I have found the prob...

c# - how to set the cursor position in a non textbox component -

I am working with a component named SpinAid whose text is property, how do I set the cursor position in this component? Unless this select-list property, or similar Text property is a string, which does not have any connection with the cursor in the editor. If it selects property, you can usually get it and get the cursor index within control. For most controls, which give it a int value, for example, to set the cursor at the beginning of the control: control. SelectionStart = 0; To set the cursor to the end of the control: control. Selection-start = Control Lesson Lang -1; However, this will only work when is the property of the control you are using and it allows it to be set. You have not specified where the control comes from, unless you give us more information, there is nothing that we can do to help.

c# - Accessing Form Authentication Ticket -

I am collecting user details with the form authentication cookie. FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket (1, username, Dettaimkab, Dettaimkab. Adminets (timeout) false}; string Ankriptedtetik = Forms Attifikeshn. Encrypt (Othtiket); Actiteepikiki Athkuki = new hTTP cookie (form Attifikeshnkformskukinam, Ankriptedtet); Acteepeepitiakstikkantent. response. how to Add cookies (authCookie); I found cookies and user details (AuthTicket) You can get code that you can use as the following: p> // the delete retrieves the cookie with your custom forms by Attifikeshntiket. HttpCookie authCookie = HttpContext.Current.Request Kkukij [Formattaaktifikeshnkformkukinam]; // Formetattifikeshntiket cookies. value property FormAssistationTicket A UthTicket = Formatting. Decrypt (authCookie.Val Ue); // "authTicket" variable now completes with your original, Custom FormsAuthenticationTicket, // user-specific custom data. You can then check that th...

maven 2 - Hot deployment to GlassFish using cargo-maven2-plugin, how to configure? -

Do I really believe that the Cargo Maven plugin does not support GlassFish 3.x for hot remote deployment? If I am wrong, then how can I configure it to support this type of operation? Maybe I should use some other plugins? I want to be deployed in "hot" mode, through HTP, in the glassfish of telecommunications. What I've done so far: & Lt; Version & gt; 1.4 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Step & gt; Package & lt; / Step & gt; & Lt; Configuration & gt; & Lt; Functions & gt; & Lt; Tempfile property = "ant.temp-ears" deleteonexit = "true" destdir = "/ tmp" /> & Lt; Copy file = "$ {project.build.directory} / $ {project.build.finalName}. $ {Project.packaging}" tofile = "$ {ant.temp-ear}" verbose = "true" /> & Lt; Exec executable = "$ {glassfish.home} / glassfish / bin / asadmin...

sql - help to write a query statement -

I need a quorum statement, which it searches for three tables Table 1 ID complete name active Table 2 ID Full name Table 3 id fullname Let me query this all three tables And give me the results for those integers that are not active Assuming that all the tables have the same structure (in your example they do not - is this an error?) Then you can use UNIAS to combine results with multiple queries: SELECT id, fullname, 'table1' AS from Table 1 AS source WHERE active = 'N' union Select all ID, full name, 'Table 2' from AS2 source source Where Active = 'N' Union Select, Full Name, 'Table 3' from AS 3 Source where Active = 'N' / pre> If you do not care then the rows come to you and you do not want to duplicate that you can try the union instead: SELECT id, fullname From table1 WHERE active = 'n' union selection id, full name table 2 WHERE active = 'n' union selection id, table 3 wi...

unit testing - Python nose framework: How to stop execution upon first failure -

It seems that if a test case fails, the nose will try to execute the next testcases. How can I make a nose to eliminate all the execution on the first error in any testcase? I tried sys.exit () but gave me some ugly and long message about it one Options for nose: -x, - Stop the first error or trials that run after failure Do you need it? The following links can help you with all the options that are available for nosetests.

c# - Simple Outlook 2007 (or newer) plugin / addin with VS 2010 Express -

I'm stuck I can learn how to prepare an Outlook plugin for VS 2010 Express or myself I am trying to make I know that it's easy to do in VS 2010 Pro, however, is it really impossible to do this in the published version? My goal is to get "control", such as a message box or similar, when a user hits "Sendbutton" in Outlook. I am trying to play with Microsoft.Office.Interop.Outlook; Microsoft.Office.Core; Without any luck Is there any simple example of someone who runs on the released version? Some non-functional code that I was playing with: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Using System.Windows; Using System.Windows.Controls; Using System.Windows.Data; Using System.Windows.Documents; Using System.Windows.Input; System.Windows.Media; System.Windows.Media Using imaging; Using System.Windows.Navigation; Using System.Windows.Shapes; Using Outlook = Microsoft.Office.Interop.Outlook; Using Offic...

file - fopen without fclose in C -

If I open a file using fopen some n numbers What will happen "post-text" itemprop = "Text"> If you continue to fopen without fclose , eventually your future call will be unsuccessful. There is a limited number of file descriptors available for your program.

jquery - image nesting issue in tiny mce -

I have a drag-drop interface, so that the user can add elements to the page. For example, I want to nest an image inside the paragraph to make text elements editable and to apply styles for it, I am using a tense MS example I have successfully completed the contents of the text element (paragraph) Successfully, I can load with my IDs, classes and styles, as long as the nested image is not there within it, once the paragraph contains nested image, then the content When loading the green in the editor, the entire contents are removed from the original P tag (one with the id and the class). I tried to write clear procedures I found that this process was added to the MSE's ENTIT, successfully worked in FF, but in IE, it has completely failed. Please advise me, is it possible that whatever I am trying to do? What can I do in different ways to accomplish this? Understood :). There is not a valid child element for div p. I removed the raper device around the image and it was fixe...

php - Which option is more scalable? -

I am working on a project php, mysql I plan to add a multilingual I am making choices, usually I use single textfile for each php file, but I want to know whether a sequence is good and why and why. Using a single textfile for the entire site: Make this my life peacefully because I only have to make changes in one place, but I do not know how much scale the option will be. Using XML files for each PHP, is this scalable for this dictionary? Using the same XML file, is it scalable for dictionaries? Using a table in DB, I have used this option several times, but I have read that it slows down the webpage is not really scalable These are my options, I would be great if someone had better, and if anyone has advice on pseudocode (I usually use a large array) and a replacement is welcome: D us For the word, different language files are the only solution, allowing many people to work in different languages ​​in different languages ​​ / html>

Silverlight Asp.Net project integration -

I added a silverlight application to my ASP.NET website. Visual Studio created a new Silverlight project and added its XAP in the ClientBin folder under the project of my website. Therefore both projects are subject to a solution. My Silverlight app should read an XML file and I was unable to access the file from the client bin folder under the website project. Adding the context of that project does not work because it says that only reference to other Silverlight applications can be added. At present, this work is done when the file is under the Sylilit project, but when this website is not under the project. How can I file it from a website project? structure WEBSITE1 (solution) -WEBSITE1 (project) -clubbin -file 0.xml -silverlightchart.xap -silwarecharch -file 1.xml I can use file1.xml XDocument document = XDocument.Load ("file1.xml"); I want to access file0.xml, but no path works for me, for example, XDocument document = XDocument.Load ( "~ ...

flex - use of cairngormEvent in cairngorm framework -

घटना का उपयोग कैरगॉर्म फ्रेमवर्क में कैरंगमोर घटना को बढ़ाता है।? क्या कोई भी इसके बारे में बता सकता है कैरंगमोर घटना। धन्यवाद, रवि कैरंगमोर घटना एक decouple तरीका है कमांड को कॉल करें जो कमांड विशिष्ट व्यापार प्रक्रिया को फोन करेगा यह CairngormEvent विस्तारित किया जाना चाहिए क्योंकि cairngorm ईवेंट में स्वयं का प्रेषण तंत्र है कैरंगमोर ईवेंट को केवल इसके प्रेषण () विधि को कॉल करके भेजा जा सकता है।

c# - byte[] to gray scale BitmapImage -

I start with the 128 x 128 array pair and for each double, in the bytes of 1d array with proportional values Change me Then I take this array of bytes and I am trying to convert it to a memory stream ( datastream below) and assign it to a bitmapImage Has been added to: imgScan.Width = 128; ImgScan.Height = 128; Bitmapmaz by = new bitmap image (); Bi.SourceRect = New Int32Rect (0, 0, width, height); Bi.StreamSource = datastream; ImgScan.Source = bi; here imgScan is a system. Windows Control. Image This does not produce the desired image (I just get a white square) How should I go about this? I think you will find in your code, there must be a full image file in the stream, of data Not a raw block. Here's a bitmap from a block of data (this is not a grayscale, but you might get this idea): const int bytesPerPixel = 4; Int Stride = Bitespixel * PixelPerline; UInt32 [] pixelbites = new UIT [lincoln * pixelpelleline]; For (int y = 0; y and lt; line count; ...

c++ - STL iterators and 'const' -

When I use the etherneters, I have a problem that appears to be some type of inserted molding. I'm not really sure which code is relevant (if I did then I probably would not ask this question.) Then I would do my best to describe my problem. typedef set & lt; SmallObject & gt; Container; // Unconfigured zero videObject :: someFunction () {// const Container :: Not the Eaterator; // not for const (this = c. Beta (); it! = C.ed (); ++ this) {// value of "container" (* it is) .smallObjectFunction (); // one const function}} However, I always get the following error: Error: 'const smallobject' as 'this' argument Passing 'Intel Short Object: Small Object Function ()' Disclaims Qualifier However, if I put it in the form of ((SmallObject) (* it) I'm getting rid of the error message. The only thing I can understand is The Bull Operator & Lt; (const smallobject & amp; a) cones In some way causes the iterator to r...

iphone - Why does this code example on Apple's dev site declare three interfaces for the same class? -

While trying to understand purpose-I am diving into iOS development and I am still at that stage where Sometimes I see, I see things that do not make sense to an experienced programmer like me, announces a class interface from header files, three different times ... @ interface session manager: NSBKD & lt; G2CessionDelegate & gt; {NSString * sessionID; Jijunism * iiGijation; NSString * currentConfPeerID; NSMutableArray * peerList; Id lobby deliaget; Id game delete; ConnectionState sessionState; } @ Property (Nonomatic, Readonly) NSString * currentConfPeerID; @property (nontomic, readonly) NSmutableEre * Pirlist; @protecti (nanatomic, assign) id lobby deliaget; @protecti (nanatomic, assign) id game delete; - (zero) setup session; - (Zero) Connect: (NSString *) PIRID; - (BOOL) accepted; - (zero) done two-dimensional exploration; - (Zero) Send Packet: (NSDT *) Data Type: (Packet Type) Type; - (zero) disconnect curtant; - (NSString *) displayNameForPeer: (NSString *) PERID; ...

WPF expander size issue -

मैं Expander s के n नंबर को स्थानांतरित करने के लिए ItemsControl का उपयोग कर रहा हूं । मेरा आइटम्सकंट्रोल ऊंचाई 600 (उदाहरण के लिए) के साथ एक ग्रिड में रखा जाएगा। मैं यह सुनिश्चित करना चाहता हूं कि मेरा ItemsControl हमेशा पूरे उपलब्ध ऊँचाई पर कब्जा कर लेगा, ऐसा करने के लिए यह कुछ Expander s ऐसा करने का सबसे अच्छा तरीका क्या होगा? एक तरह से बाइंड करना होगा माता-पिता के वास्तविक वाइड और वास्तविक हाइट गुणों को अपने नियंत्रण के ऊँचाई और चौड़ाई गुण >

java - Launching intent from a class outside an activity -

I have two activities, one of them is called MyActivity . I want both of them to be able to use the functions located in a class that we can call on MyClass In MyClass , I get the activity to other I try to use the intent to launch the activity . Since the constructor takes a reference in the form of parameters, I used to try to store a reference from the activity in the constructor, and then use it when I try to make my intention. class MyClass {Personal Context CXT; Myclass (reference CSTT) {this.cxt = cxt; } StartIntent () {intention intended = new intention (CETT, other activity class); StartActivity; // This line throws a NullPointerException}} MyActivity code to use the class is shown below: MyClassObject = new MyClass (MyActivity.This); MyClassObject.startIntent (); However, even no logic is understood that there is no logic (a simple statement is checked), intent redundant and a NullPointerException Throwed, why does not this work, and what can I do to s...

spring - Grails: Declarative Transactions -

Text after class ExtHotelApiService HotelApiService {static scope =" singleton "static behavior = true def save (parameter) {parameter extends is. Hotels.each {ht-> Try {transactionalSave (HT)} hold (exception e) {dealing / * exception *}}} @transactional (only read = false, promotional = Propagation.REQUIRES_NEW, rollBackFor = RollBackError.class) DEF transactionalSave (HT) RollBackError {throws ExtHotelApiService extends HotelApiService RollBackError extends RuntimeException ExtHotelApiService.transactional = True HotelApiService.transactional = False We must save the hotel and save the details after that We should return roll back the transaction (and not stay in the hotel) Details are not valid (can not be sustained) All code was written accordingly, but there is a problem - there is no roll back at all! : ( The transaction is done successfully and the hotel is similar to DB, even after RollBackError is thrown Where I make a mistake...

Word 2007 vba - Styles arent applied via macro -

I have a macro code, which basically creates some tables, then some type into some text, And then some text placeholder problem appears when I try to apply the styles in the text. At first I thought that this is only a placeholder not affected by the code but it seems that the regular text selected by the macro also does not apply. The code basically looks like this: Selection.TypeText Text: = "Entreprisecost:" Selection.MoveRight Unit: = wdCell CC = Selection.Range. ContentControls.Add (wdContentControlText) cc.SetPlaceholderText Text: = "Details of cost" cc.DefaultTextStyle = "EnterpriseStyle" Selection.Style = ActiveDocument.Styles ("EnterpriseStyle") Note I How to define style on both placeholders and selection. Next, I try to enter a simple macro where I try to enter the whole selection, then apply the selection to the style. It works when I'm recording but after running the macro it does not work It's weird: Selecti...

latex referencing separately compiled book -

I am writing a textbook and want to put the exercise in a separate book to save space. 2 books will be compiled independently, however, I want to be able to make reference to the sections in the main book book, for example "see exercise"; referee [externalfile] {formerly: afu} "Similarly, I In the main book I want exercise book to make reference to sections. Is this possible? (I'm guessing that I've got a package to do this once, but no longer remember the name, and googling is not walking) Thank you! Kevin Use: \ usepackage {xr} \ externaldocument [Ext: Other:] {otherdoc} \ ref {ext: Other: ex: foo}

Javascript GTK bindings -

Binding for the GTK library in genomes is maintained by genome, are they asynchronous or synchronous calls? I'm not able to get in one way or other details. I want to develop a nodes js module for GTK for building desktop apps. is the beginning of static gtk binding and I'm starting binding in the Geobject Introspection Repository. Both are incomplete right now I have just one mapping, but I have made some good plans with the people, offline. If you have a specific app in mind that you want to create and it does not need many widgets, then it can be easy to add binding to Tim Smart's repo, my GIRI binding, once To keep the binding up to date will allow too much to use any gnome library until complete.

c# - Cell color of WPF DataGrid back to the default -

I am using buildin WPF DataGrid using .NET 4. I can do a set of backgrounds like the DataGridCell Programmers below. DataGridCell dgc = this.GetCell (i, j); // GetCell's extension is func dgc.Background = Brushes.LightGray; My question is, how can I set the background color and return it to the default? By "default" I mean that if the cell is selected, the default transparent background with blue color. If I just set the cell background back to the bottom, dgc.Background = Brushes.Transparent; Then, this auction is not created when it is chosen. dgc.ClearValue (DataGridCell.BackgroundProperty);

.gitignore file showing up in git status under untracked files -

Guit newbie here I'm probably making a simple mistake here, but I think my file can not be found. When you add a file to the .gitignore file, should not it show in "git status" at all? Here is my .gitignore file: . *. Suo *. User I also tried it like this: . *. \ .jar is the file to be displayed under GIT status ACS.CF/ACS.CF.UI.Framework/ACS.CF.UI.Framework.csproj.user Try *. Suo *. User

php - Simple regular expression to get text between <br/> and next <br/> -

I have a string that contains this (and other things): & Lt; B & gt; SINOPSIS: & lt; / P & gt; & Lt; Br / & gt; Text Text and Mewar Text ... Text & lt; Br / & gt; Let me first & lt; Br / & gt; To get the text between the tag requires a pre-play. Thank you ... Note: Add more & lt; Br / & gt; Tags. I need the first event. I am using the PHPs preg_match () function. This will work, be sure to enable multiline There are other fancy ways to investigate more ... Edit: preg_match ('! \ & Lt; br / / & gt; & Lt; br />>; 's, $ string);

c# - How to serialize/deserialize simple classes to XML and back -

Sometimes I want to store the data of my squares without setting the round trip for the database, for example, suppose I have the following classes: Public category shoppingcart {public list & lt; CartItem & gt; Item {get; Set;} public at user id {received; Set; }} Public Class CartItem {Public Integrated Schuid {get; Set; } Receive the public int quantity; Set; } Public Double Extended Cast {get; Set; }} Let me assume that I create a ShoppingCart object in memory and want to "save" it as an XML document. Is this possible through some type of XDocument.CreateFromPOCO (shoppingcart) method? How about other directions: An XML document such as new ShoppingCart (xDoc) There is an inherent way of creating an object Div> There is a way to do this. The second is Example with XmlSerializer : using System.Xml; Using System.Xml.Serialization; // ... shoppingcart shoppingcart = fetchShoppingCartFrom from somewhere (); Var serializer = New XmlSeria...

macros - Notepad++: Writing a run command using an installed plugin -

I'm trying to find a way to get the syntax highlighted text from N ++ and then it's MS Word Open within I have got a plugin NppExport which can save the highlighted text in an RTF file. But it seems that the N ++ macros are actually unable to use it? Any suggestions for automating this process? Thanks! Basic Step 1) Call "export to RTF" 2) Save to $ {FULL_PATH_NAME}. RTF 3) Open RTF file 3) Open MS Word Note: I have 4 Is detected using & amp; Quot; C: \ Program Files \ Microsoft Office \ Office12 \ Winword.exe & amp; Quot; / F & amp; Quot; $ (FULL_CURRENT_PATH) & amp; Quot; Since you are trapping in two programs (Notepad ++ and Word) It can be difficult to do completely in macros. I had no luck with macros beyond repetition text manipulation. But I can recommend the autohotkey.com tool which simplifies these tasks. Here is a small example that I tried. Yes it works. ^ R: WinMenuSelectItem, ahk_class Notepad ++, Plugins, NPP Export, ...

c# - Determining Windows OS architecture in a non locale-sensitive manner -

I'm looking for a trusted way to determine the Windows OS architecture (32-bit or 64-bit) in some way I'm using C # to do that which is not sensitive to the Windows version or the system locale / display language. To clarify, I need OS architecture, not processor architecture, and not application architecture. I know that I can use IntPtr.Size, but it depends on the target architecture of the application. I also get the "OSArchitecture" property from Win32_OperatingSystem to get the system. Have tried to use management. However, the value of this change based on the display language. (For example, if I set the display language in space then I get "64 bit", when in English it is "64-bit".) Thanks! Here's an answer Actually, you can type it You can check before and then make the appropriate call to check the correct method

version control - Advantages that Git# (GitSharp) will bring over current alternatives on Windows? -

With the release of August 2010 (they have a very clean road map on their site), what are the advantages (or) ( can not be possible without Edit: The question was not prepared properly. I'm not sure about the advantages of each other Understand it Given that, they are completely different things: MSysGit is a program used by humans, Git # is a library used by machines. It is like asking What are the advantages of a piece of pizza at the International Space Station.

Linq-to-sql - query is not filtered -

I'm really new to Linux and am using Linux-to-SQL. However, in the following example, where my section is never executed and as a result the query tries to get all the records from my table, also ignores the method. Is anyone telling me what I am doing? var baseQry = db.Table; BaseQry.Where (a => a.tab_id == theId); BaseQry.Select (o = & gt; new {o.name, o.display_name, o.type, o.info, time_stamp = (convert.dataimestamp) .oolodet string ())}). Take (10); BaseQry.ToList (); your second line ... baseQry . Where (a => a.tab_id == theId); ... is essentially a no-op, because the result is not in your query. Select the segment. You need to change it: var baseQry = db.Table; Var result = baseline. Where (a => a.tab_id == theId). Select (o = & gt; new {o.name, o.display_name, o.type, o.info, time_stamp = (convert toDateTime (O.timestamp) toLongDateString ())}). Take (10) .ToList ();

Can I enable bluetooth on a mobile device with java? -

Sorry for my bad english, someone had worked with Java on mobile device (cell phone), then tell me what might be possible To enable the device's Bluetooth connection from the Java application? Thank you Yes, it is absolutely with J2ME (Java 2 micro version) possible. I did this three years ago, so I have some knowledge. Visit Oracle's website and download J2ME libraries / packages from Oracle. For example, how to connect to a Bluetooth device for more tutorials.

Minimum Hard Drive Size for SharePoint 2010 and SQL Server 2008 dev machine -

Let me tell you VS on my local box. 2010, and I am building VM with SP 2010 and SQL Server 2008. What should be the hard drive size shoot on VM? I would recommend creating a certain size (for better performance) hard drive which is less I have built SP2010 development machine on the second day and after installing the VS 2010, SP02010, SQL Server 2008, Office 2010, SharePoint Designer and a few other tools, I have around 15- 20 GB spaces is good for other stuff Update: If you have a chance Take a look, the details in the first chapter writer are given details of how a correct SharePoint 2010 development machine can be set up.

scala - Performance of message-passing in the Actor model -

I have seen the benchmark of actor model implementation done in the case of my actors. For example, Akka is very light (600 byte per actor) and millions of them can be built. However, I have never seen a benchmark in terms of messaging pass throughput. For example, some actors were given, how many messages can cross between them per second? Do anyone have a link to such a performance benchmark (in the case of messaging)? Jetong (Java) See also and more.

iphone - Rotating UIButtons on a view -

I have 5 buttons that are on UIView which I would like to plot equally with a circular path, The path that will constantly rotate on it. To be clear, I do not want to rotate the button myself, I just want to take them on the circular path. What is the best way to manage it? UIBezierPath or CGPath for each button Create, adjust and adjust the initial angle For every initial starting point of the angle in the account then create a CAKeyframeAnimation for each button / path, give it the path, set it in autorepeat and add it to the appropriate button's layer. UIBezierPath method + bezierPathWithArcCenter: Radius: StartAng: Andangel: clockwise: will help you create circular paths. You will need to calculate the right angles, but this is just a small math.

hosting - Seems like every cool new website has an intro video. Where's the best place to host it? -

Almost every new website has an introduction video that does more about the site, potentially new users Tells. / P> What is the best way to host such a video? I have looked into the suspects as usual, but everyone faces serious blows: YouTube - Denied commercial use Self hosted with JWLlayer - re-embedded (I think), money can not be spent. Regarding the re-embedding point, TechCrunch has recently made this issue that technology and other news sites about them prefer to embed those videos into those articles, and on those sites whose non-embeddable Videos are leaving free coverage. Edit: I am not talking about Flash Intents, which should be clicked to see the site, I am clicking to know more about optional video users Am Example: Click on More Info, Video Tour Click on Right, etc. In addition, I hate these videos as much as I hate, but believe that the end user loves them. I totally hate for video as an alternative to people like me as a text and image version is m...