Posts

Showing posts from February, 2014

Will sending an HTTP Header with Accept: text/html only download text from the page? -

I'm writing a simple crawler, and ideally to save bandwidth, I only download text and links Want panna Can I use HTTP Headers? I'm confused about how they work. You are on the right track to solve the problem. I'm not sure how much you already know about HTTP Headers, but basically just a string formatting for an HTTP header web server - it follows a protocol - and that Very simple in the aspect You write a request, and receive a response. The requests you see in the Firefox plugin look like things seen in the LiveHTTPHeaders. I wrote a small post on my site that shows you how you can write a request for a web server and read the answer later. If you accept only text / html, you will only accept the subset made available on the web (yes, it will "optimize" to some extent your script). Note that this example is actually low level, and if you are writing a spider, then you can use an existing library such as curl or other tools that provide the langua...

sql - Get the top row after order by in Oracle Subquery -

I have a table student (id, name, department, age, score). I want to find the youngest student, which is the highest score (amongst the youngest students in each department). In SQL Server, I can use the following SQL Choose from student s1 * in s1.id (student s2 select s2.id where s2.department = s1 score marks top 1). However, in Oracle, you can not use the order by section in the sub-section and there is no limit / top like the keyword. You have to connect yourself twice. In Oracle, I use SQL select s1 * Students from s1, (s2.department, s2.age, max s2.score) as max sscore from student s2, (select s3.department, min (s3.age) s3.department by student s3 group Min_age) tmp1 where s2.department = tmp1.department and s2.age = tmp1.min_age group s2.department, s2.age) tmp2 where S1.department = tmp2.department and s1.age = tmp2.age and s1 .score = tmp2.max_score Does anyone have an idea to simplify the above SQL for Oracle? try this one to choose from (SELECT ID, ...

PHP dynamic object property is there a way to make it work? -

So I know that I can do something like this in PHP: & lt ; Php $ X = 'A'; $ A = 5; Resonant $$ x; what production will 5; But it does not work with objects / properties. Is this code any way to work? & lt ;? Php class FooBar {public $ foo; Public $ bar; Public function __ composition () {$ this- & gt; Foo = 'foo'; $ This- & gt; Bar = 'bar'; }} $ FooBar = new FooBar (); $ Str = 'Fubar- & gt; Foo '; Echo $ $ str; It may be closed: class FooBar {public $ foo; Public $ bar; Public function __ composition () {$ this- & gt; Foo = 'foo'; $ This- & gt; Bar = 'bar'; }} $ FooBar = new FooBar (); $ Str = 'Fubar- & gt; Foo '; List ($ square, $ attribute) = explosion ('- & gt;', $ str); Echo $$ class- & gt; {$ Attribute};

c# - Deploy mvc.net on none root IIS app folder -

The title may be slightly vague, but I do not know how to describe it otherwise. The problem is the following: The problem is I have an MVC website and 2 servers, a test server and the real server: The test server folder is a root folder, so the ad is: -> This is not a problem. But now I have to be deployed on the life server: -> This is a problem. This is a problem because routing does not work like this, it does: {controller} / ... instead {controller} Do you create my virtual folder as a virtual directory? Do you have the ability to (whether you have full control, or is it a shared hoster)? EDIT: You'll be able to change your default route to include myappfolder in the route URL ... from the default "/ {controller} / {action} .." to "/ myappfolder / {controller} / {Action} .. "Replace.

mysql select static list -

मैं एक INSERT ... SELECT इस तालिका के साथ एक तालिका से दूसरी तालिका में चयनित कॉलम स्तंभ को 2 पंक्तियों की सही मात्रा के साथ सम्मिलित करें। स्थिर मानों का एक अतिरिक्त स्तंभ सम्मिलित करना चाहेंगे। उदाहरण | चयनित स्तंभ | स्थिर वैल | वैरिएबल 4 वैरिएबल 9 स्थिर मान 4 & amp; 9 को मेरे PHP स्क्रिप्ट में निर्दिष्ट किया गया है। क्या मैं यह 1 mysql क्वेरी में कर सकता हूं, अस्थायी डेटा को स्टोर करने के लिए php का उपयोग नहीं कर रहा हूं? आप UNION ALL इस तरह से दो बार स्रोत तालिका से चयन करने के लिए: new_table चुनिंदा कॉलम में डालें, पुरानी_टैबियन यूनियन से सभी चुनिंदा कॉलम, 9 पुराने_निर्धारित;

jquery show/hide div -

मेरे पास अगले jquery कोड है: & lt; script & gt; $ (डॉक्यूमेंट) .ready (फ़ंक्शन () {// स्लोपबॉक्स को छुपाता है जैसे ही डीओएम तैयार है // (पृष्ठ लोड की तुलना में थोड़ी देर पहले) $ ('# छिपा हुआ')। Hide ();}); // & lt;! [सीडीएटीए [फंक्शन शोहाइड () ($ ('# छिपा हुआ')। फ़ेड इन (); $ ("# शॉपिंग-कार्ट")। चेतन ({"ऊंचाई": "टॉगल"}, {अवधि: 550}); } //]] & gt; & Lt; / स्क्रिप्ट & gt; मैं उस पर एक अंधेरे पृष्ठभूमि पाने के लिए छिपा हुआ div # (प्रकार की लाइटबॉक्स पृष्ठभूमि) का उपयोग करता हूं और मैं # शॉपिंग-कार्ट div को टेबल, इनपुट आदि जैसे कुछ तत्वों सहित दिखा रहा हूँ एक ए कर्ट-बटम पर एक क्लिक करने के बाद & lt; a href = "#" शीर्षक = "" onClick = "दिखावा करें (); वापसी वापस;" वर्ग = "गाड़ी-स्थित बटन" & gt; कार्ट & lt; / a & gt; उपयोगकर्ता को ए बटन पर एक क्लिक करें, कार्ट को दिखाने के लिए, div # hidden दिखाया गया है मैं जानना चाहूंगा कि अगर उपयोगकर्ता # div-shoppi...

Are there any special configuration for two Grails application using same database and tables? -

I have two grails (1.2.1) applications deployed in two different app servers. An app contains the main site (view, controller, domain, etc.) and the second app has a quartz plugin that corrects and backend processing. Both apps are sharing domain classes and similar datasource configurations, that means two apps are accessing the same databases and tables. My question is: Is there any penalties for inquiring the database? The quartz job app is running, so I'm just looking at the slow end of the main site app. No obvious evidence or statistics though. Can the hibernate component control the vascular and transactions in every event on every app? Or do I need to configure something in grails-app / conf on every app? Right now, I did not add additional configuration. Thank you. I can think that the main problem will be problem with level caching. If both apps try and use cache data, it can cause StaleObjectExceptions and so on when the cache gets out of sync with DB, be...

resharper - Is there any benefit to making a C# field read-only if its appropriate? -

I am working on a project that is using reciprocity. On this occasion, I get an indication that one area can be read only, does it have any performance or other advantage? I am assuming that the benefits will be quite low, or will any profit be purely meaning? Thanks with the example below the field was initially private, but inspired to set the resharper, it is only in the form of reading. I understand that to read it Can be set as a method, that is, it is being set in the constructor and has not been changed again, but just thinking that there is a benefit for it ... Public Sector Market Controller: Controller {Private Readonly IA Kekets repository Market repository; Public Analysis Controller (IMcatets Repository Market Repository) {this.marketsRepository = Market Repository; }} Edit What is the easiest way to view MSIL? The benefit is semantically only, it will help users of your code to understand clearly that the object is created. This field can not be chang...

c# - Error in ASP.NET MVC SelectList. Value Cannot be null, parameter name: items -

The line I is causing some problems in the development of an MVC app & lt;% = Html.DropDownListFor (model = & gt; model.TypeID, new selectList ((IEnumerable) ViewData [ "TaskingTypes"], "TypeID", "TypeName"))% & gt; If this form does not fill two other required fields, then the error causes the title. When the fields are filled up, the form is stored and recorded, there is no problem in the DB. Anyone have any idea why the verification is being raised and moved to the scene? 'TaskingTypes' one unit has 1 relationship for many relationships with the 'tasking' institution. 'Tasking' foreign key 'TypeID' in stack trace of the top 2 lines: [ArgumentNullException: Value can not be null. [Parameter name: item] System.Web.Mvc.MultiSelectList..ctor (IEnumerable items, string dataValueField, string dataTextField, IEnumerable selectedValues) 262,322 System.Web.Mvc.SelectList..ctor (IEnumerable items, strin...

jQuery tabs, use like menu, load page when click on link -

I've added jQuery tabs to my opt-out site I have no problem yet but I I want to - click on a tab - do it as a regular link and should behave. Exampel 1: See this link. At least Anne Licinias this load while clicking on the option: The content and url from the same file is static (default.html). I want the following: Exampel 2: Click on Start now (formerly Nunc.php) At least (ex. Proin.php) Anne Lecenia (formerly .nn.fp) I have to reload the hole page. To click on the tab, "Now New" should nunc.php (and change the URL), "proin dolor" should be loaded by clicking proin.php and similarly. How should I accomplish this? You can give the anchor the actual href features like this: & lt; Div id = "tabs" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "nunc.php" & gt; New texts & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "pr...

javascript - how to group the components to a fixed position on the screen in asp.net? -

I am preparing a registration page in asp.net. Groups (labels, DDL and text boxes) are using panels, but the page position of the components are changing while running. How to fix components in a particular situation? Thanks, Radha You can use table tags for example

layout - Spacing ImageButtons in Android -

How can you image image image? With relative layout, I can put them together, but I want the difference between the two How do I place in the center and at the bottom of the screen? Relative layout with , I can keep them aside, but the difference between them needed. android: layout_marginTop and use related properties. How can I take place in the center and at the bottom of the screen? android: layout_centerHorizontal = "true" and android: layout_linkpointbottom = "true"

.net - how do you stress test a wcf service -

What tools and techniques have you used to test your wcf services? Where did you consider a particular type of hosting type (i.e. windows service versus iis vs. ys)? should be the correct device, though it the Visual Studio Team System is required I can not confirm this because the installer was not working properly on my office machine. Also looks for a job, but it is not free (this is not a load test feature). By now it was the best to make it herself. Using a few stopwatch (), using one thread per customer. By separating the number of threads and call frequency, I can get average response times for example.

malloc - Strange behavior (SEGFAULT) of a C program using stdargs (va_start) -

I have written a variadic C function, which is to allocate the memory required for the buffer of the mission, and then the given argument Function in buffer but I'm seeing a strange behavior with it, it only works once if I have two calls for this function, then it is segfaults. #include & lt; Stdio.h & gt; #include & lt; String.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Stdarg.h & gt; Char * xsprintf (char * fmt, ...) {va_list ap; Four * parts; Four * buf; Size_t len ​​= strlen (fmt) +1; Va_start (AP, FMT); While (part = va_arg (ap, four *)) len + = strlen (part); Va_end (ap); Buf = (four *) molk (size (four) * lane); Va_start (AP, FMT); Vsprintf (buff, fmt, ap); Va_end (ap); Return buff; } Int main (int argc, const char * argv []) {char * b; B = xsprintf ("My favorite fruits are:% s,% s, and% s", "coffee", "c", "oranges"); Printf ("Size De Buff% d \ n", is Stellon (B)); // this wo...

c# - How to get the sum of list of shorts using the extension method Sum()? -

I was trying to do something like this - list & lt; Short> Listofshorts = New list & lt; Short> (); Int s = listofshorts.Sum (); // This does not work ... but works for the same code ints list. I found this compilation error - 'System Collections. There is no definition for 'yoga' in Generic.List and there is some invalid argument in the best extension method overload 'System.Linq.Queryable.Sum (System.Linq.IQueryable)'. Can someone suggest how can I use an extension method to calculate the sum of shorts? The extension method does not support it for some reasons ... int s = listofshorts sum ( D = & gt; D);

ios simulator - IPhone Web Design Preview -

I am using Safari on Windows and IBBDMO Blackbird iPhone Browser Simulator has been used to emulate the iPhone. But I've noticed that Safari does not render the elements using default control styles, Safari provides the default control styles on iPhones that are specific to the iPhone. This means that my web form does not like anything like they do on a real iPhone Are there any style sheets or iPhone web design tool kits that will show form elements in exactly the same way as Should they look? Or is there an online service that provides a screenshot of how a web page looks on the iPhone? If you are a Mac, then the easiest way to use the iPhone simulator is to use it for your purposes Not suitable for. There are a lot of things that you need to get the right of rendering (many goals have been made, and users can scale a page with arbitrary size, and whenever you rotate the device , Sometimes weird things happen).

edit - jQuery Cycle with defined pager links -

I created a player using chakras through several promos but I used to specify specific descriptive pager link for each page I want to define 1,2,3, etc.) I know that this should be possible, but I do not know how ... Even when I added elements in the pager divis they are shown But those auto-generated players Thanks in advance for help! $ (document) .ready (function () {$ ('# promoplayer'). Cycle ({fx: 'fade', speed: 600, timeout: 6000, delay: 1000, Pager: 'Pager'}}}} For this, Code> pagerAnchorbuilder to create a pager link. You can return any HTML string from the function, and it gets the current slide, from the first parameter, you can You can create your own structure. $ (document) .ready (function () {$ ('# promo Player '). Cycle ({fx:' fade ', speed: 600, timeout: 6000, delay: 1000, pager:' #pager ', // callback fn to use as a pager anchor pager anchor builder Creates thumbnails: Function (IDX, Slide) {Return ...

vb.net - iTextSharp - How to input image (PNG) from project resource? -

I have iTextSharp for me making a PDF in VB.net. Everything was working well, except now I want to embed an image. I tried to do this: dim test = my.resources.my image dim logo = picture. GetInstance (test) This is an error though: It appears as if it would expect a path , And getting a system. Drawing Bitmap type Is there any way that I can add project resource images to my PDF? thank you in advanced! One of the overloads for iTextSharp.text.Image.GetInstance () A system.Drawing.Image , so change your PNG resource in such a way and then use this surcharge. Something like this: Dim check as the system. Drawing Image = system Drawing Image. FramesHitmap (). Dim Logo ITextSharp.text.Image = ITextSharp.text.Image.GetInstance (Testing, System.Drawing.imaging.ImageFormat.Png)

facebook actionscript api flash: how safe it is to place the api key and secret key in my flash application? -

I want to write a Flash application that uses the Facebook Javascript API. To use Flash Apps, I need to type secret and API key in the Flash application. As far as I know that every Flash application can be decoded and the API key and secret key can be revealed. Is there any way to properly preserve those keys? I call it your secure location server. The server should see if the request comes from your domain, and if it is the case then only the API key will be returned.

Opening a Specific Email in GMail Using C# and WatiN -

I am working with sending and receiving emails through various web mail clients using WatiN, write And sending emails work perfectly, but I'm having trouble opening specific emails. Each email that I send is a unique ID code on that topic, but how do I actually tell WatiN, the specific email I think would be something like this: ie.Link (Find.ByText ("UN1QU3_1D")). Click (); But how Gmail and Live set up your display does not seem to work ... In addition, there is a little easier question, there is a Is the way Do anyone have any bright ideas? Many thanks. Since not all Gmail message titles are actually linked, I think this will work: i.e. click on Span (Find. ByText ("UN1QU3_1D")); Also, as long as I remember, unless you specifically stop them, WATI will not close a browser, such as: ie.Close (); Update: In the end it worked for me: D Span i.e. Framesspain = I Frame [3] .spain (representative (span s) {return s.InnerHtml == ta...

c++ - Converting QString/QChar to be accepted with Crypto++ -

I want to create a program that encrypts (later decrypts) user input string is the beginning for encryption here: QString getData = ui- & gt; Text-> ToPlainText (); // std :: string data to process output; // result will be 32 encoded string, so std :: string is ok. Now, I have to convert from QString to char * or std :: string crypto + + I would have thought that QByteArray would be okay because it has the .data () function, which gives char * . ( getData is always 17 or more bytes long: Crypto PP requires at least 17 bytes for AES encryption). Therefore, I have used the following code: QByteArray data; Data.append (GetData); // Make AES encryptor: // Encrypting AES and Base32: CryptoPP :: StringSource SS ((byte * constant) data.data (), data.size (), true, new CryptoPP: : StreamTransformationFilter (Encryptor, New CryptoPP :: Base32Encoder (New CryptoPP :: StringSink (Production)) // Base32Encoder) // StreamTransformationFilter); // string source UI-...

Ruby on Rails: problem getting CKeditor to upload images -

After when I can take a file and click "Send it to server" I get an error : InvalidAuthenticityToken: {"Upload" => in the ActionController :: MediasController # new_from_disk parameter # & Lt; File: / var / folders / Fr / FrWbhcV1HdGpFgn7Lh7OhU +++ TI / -Tmp- / RackMultipart20100802 -4884-olu0e5-0-gt; "CKEditorFuncNum" = "42", "langcode" = & gt; "N", "CkAditor" = & gt; From my understanding of "object_content_body"} , the ckeditor uploader sends my ruby ​​action to the file, and I handle it then and there. So I do not need a scene associated with my new_from_disk operation (which does not currently do anything). There is a document of uploading / browsing stuff that you have already uploaded. None of this has helped me Is any one of the signs / guides? By default, the authenticity token of the user has been submitted to Rail - and raises one exception - if it is not. Th...

iphone - push view when touchesBegan -

I have a navigation controller app, when the user is in a specific view, he can touch a scalp and I want to push the rootview controller, so, I have the equculued component, and in the "touch" method, I have to push the rootview controller, but I do not have access to the navigation controller! How can i do Create two example variables in your sub-class UIScrollView: ID representative; SEL touch action; Then create methods: - (zero) setTarget: (ID) target and verb: (SEL) verb {representative = target; Touch action = action; } - (zero) call action {if (Representative & representative representative replies: touch action)) {[Representative Performance Selector: Touch Action]; }} In your touch, just call this method: ... [call auto action]; ... In your UIViewController class create method: - (zero) myScrollViewTouchAction {[self.navigationController pushViewController: myNewViewController Animated: Yes]; } And in the end, when you make an exa...

javascript - Jquery: Possible to dynamically change source of Autocomplete widget? -

Greetings, I am using the official AutoClplet jquery widget and dynamically assigns a variable Switching Selecttype) I'm passing through the query string. There is a variable change depending on the option selected by the ARTR ("Value" box selected. $ (function () {var selectType = $ ('# selectType option: selected') ; Attr ("value" ARTR ("value"); Alert (type select); // alerts the correct value for debugging); ($ ("# selectType"); $ ("# selectType") Change (function () {selectType = $ ('# selectType option: selected').); $ ("# Address"). Autocomplete ({Source: "Ajax Search Foreclint. Officer.PP? Selection Type =" + please type , Minaltata: 3});}); Automatically source Try to auto-complete the change event. $ (choose function () {var = $ ("#selectType"), option = choose.Find ("Options "), Address = $ (" #address "); var selectType = options.filte...

Data allocation to pointers in C -

चार * p = "abc"; Char * q = "abc"; यदि (पी == q) printf ("बराबर"); Else printf ("बराबर नहीं"); आउटपुट: बराबर क्या यह संकलक विशिष्ट है, या क्या यह अपेक्षाकृत व्यवहार के रूप में मानकों में कहीं भी परिभाषित है। 6.4.5 / 6 से स्ट्रिंग लिखित: यह अनिर्दिष्ट है कि क्या इन सरणियों को अलग-अलग प्रदान किया गया है, उनके तत्वों को उपयुक्त मान दिए गए हैं। वास्तव में, संकलक निम्न सेट में विलय कर सकता है शाब्दिक: चार * p = "abcdef"; Char * q = "def"; ऐसा q उस स्ट्रिंग की ओर इशारा कर सकता है, जो कि p से होता है (यानी, q == & amp; ; P [3] )।

automation - something better than httrack to download files? -

I am trying to download documents (pdf, fights, images) from webpages that have javascript and frames . Example: 'httrack --get-files' has not downloaded any, what other ways can you think? Another program? Do I have to write that program myself? Thanks a lot! wget?

silverlight - How can I have a list selection like the theme accent color picker in Windows Phone 7? -

In the phone 7 app of my windows, I would like a "depressing situation", when the item is kept as a theme, Color settings for my list How can this be accomplished? to: I think the expression is created through blend The easy way to go will right-click on your ListBox (main control, not its items). Then go to "edit additional template .... (item container style) .... Edit currently." Then Blend will load a new page to modify the container's style. In the top left panel (where you can select project, assets etc ...) click on "states" You will see a list of states. What are you looking for?

unicode - Python UTF-8 comparison -

ए = {"a": "çö"} b = "çö" a ['a'] & gt ; & gt; & gt; '\ Xc3 \ xa7 \ xc3 \ xb6' b.decode ('utf-8') == एक ['ए']>> gt; & gt; & gt; झूठी वहां क्या हो रहा है? संपादित करें = मुझे खेद है, यह मेरी गलती थी। यह अभी भी गलत है मैं उबंटु 10.04 पर पायथन 2.6 का उपयोग कर रहा हूं। संभावित समाधान या तो लिखना इस तरह से: a = {"a": u "çö"} b = "çö" b.decode ('utf-8') == एक ['ए'] या इस तरह से (आप दोनों कोड पर .decode ('utf-8') भी छोड़ सकते हैं): a = {"A": "çö"} b = "çö" b.decode ('utf-8') == एक ['ए']। डीकोड ('यूटीएफ -8') या इस तरह मेरी (मेरी सिफारिश): a = {"a": u "çö"} b = u "çö" b == a ['a'] स्पष्टीकरण टिम की टिप्पणी के आधार पर अपडेट किया गया। आपके मूल कोड में, b.decode ('utf-8') == U'cö ' और a [' a '] =='...

Windows C++ Should I use WinHttp library or XmlHttp from MSXML? -

A simple question asked to do a web service in my code ++ program WinHttp library Should I use the IXmlHttpRequest interface in the mxxml web service request? Clearly, the WinHttp library provides much more precise control than library IXmlHttpRequest . But the XmlHttpRequest object is a w3.org standard and more portable in theory. It depends on whether you are accessing the service on a secure channel, ie HTTPS or simple one i.e. HTTP According to MSDN ( http://msdn.microsoft.com/en-us/library/ms891732.aspx ), IXMLHttpRequest only supports HTTP Note IXMLHTTPRequest does not support secure website access. To access a secure website, use the WinINet API. But the WinInet API is very old and there are some multi-threading problems (I think its on MSDN Note: libcurl and curlpp (c ++ port) to check libcurl) is also there. For this http://stackoverflow.com/questions/1011339/how-do-you-make-a-http-request-with-c

SVN update authentication request on some directories -

When I issue the svn update command to the directory with the same user and group permissions, sometimes I get a password prompt And sometimes. How can I go about debugging it? Do I find the directories with the same permission? What can be done with such authentication? Thank you! The ssh component with the svn + ssh protocol will ask you for a password.

asp.net mvc 2 - Getting post values of dynamically generated content -

I have a form generator, what I want to do is take the form list of questions, dynamically generate them on the page , Then retrieve the answer is easy to generate question, but how do I get those answers? I do not think how strongly I can write a scene, but is there a way to manually grab post values ​​if I know the name of the input field? Access the form values ​​directly in your controller: Var value = request.form ["inputname"];

iphone - UIImageView with stretchableImageWithLeftCapWidth doesn't stretch image -

I am trying to disperse an image into UIImageView - but I have failed miserably :) Setup: A scene attached to this view and a UIImageView with NIB-files. Wired in my class using IBOutlet UIImageView * Background . Now, in my class, I try the following: UIImage * bgImage = [[UIImage imageNamed: @ "myImage.png"] Lift with expanded image Cap Width: 0 topCapHeight: 50]; [Background set image: bgimage]; BgFrame = CGRectMake (0, 0, 250, 200); Background.frame = bgFrame; The image should be standing - at least, that's what I thought. Hi, this is not working ...: ( The image I am using is the height of 115 px (which should be enough for stretch, I think?) Got it ... (Interestingly, this is often seconds after asking this question) In IB, me What is the solution to this problem ... Hope that helps someone;) >

mod rewrite - How long is too long for an .htaccess file? -

I wonder if my .htaccess file is too long / disabled? 250 lines like the Rialite Rule: rewrite ^ (en | de | fr) / foobar $ site = foobar and lang = $ 1 [L] Remitament rules ^ (en | de | fr) / FOBr / Bar / 123 $? Site = Fuß & amp; Value = bar and other values ​​= $ 2 and gender = $ 1 [L] Is there a way to do it more efficiently? Yes, instead of processing stars inside PHP, especially considering the performance overhead, There is nothing to be too much in your application logic in. Change a whole lot, or as much as you can, with anything else: Rewrite rules ^ ([-A-Za-z0-9 /] +) $ Index.php? Q = $ 1 [NC, L, QSA] and start explode () :) to learn to love (and list) / Code>! - Thanks MACU!)

c++ - Stl methods with cmath functions -

I was trying to write a STL method to take a vector log: for_each (vec.begin (), vec.end (), log in); but I get it to call 'for_each (__ gnu_cxx :: ___ normal_example & lt; double *, std :: vector & Lt; double, std:: allocated gt; gt; __gnu_cxx :: ___ normal_interface > What I collect is due to several versions of the log function, obviously I have to log the function of the log I can write a simple cover around it and call it on it I am here. Which is a simple way to specify which log function I want to inline? Yes you can put the function in the appropriate type: For_each (vec.begin (), vec.end (), (double (*) (double)) logs; Another possibility is creating your draft that will accept any type of: struct log_f {template And, as Billy O'Neill said, you want transform instead of for_each .

db2400 - How can we View the DB2 Procedure and How can we execute the DB2 Procedure and just see the output of the procedure using DB2 -

How can we see the DB2 process (I mean the argument they have written) and how we can execute the DB2 process and how to do it. DC2 system stores system table under Sysat schema is. Therefore a query on syscat.routines will give you the stored procedure content. A typical example: If you get a stored procedure by name named update_employee , then the following query works: syscat.routines Choose the text from where routinename = 'update_employee' Using the DB2 description command, you can see the table schema and determine which column you want to see. The process has already answered "in" and you can mention it. ( Example: mystoredProc (parm1, parm2,?); ) I recommend reading the DB2 stored procedure details from the IBM website.

search - Indexing and searching MySQL with solr -

I have installed a solar and I am trying to index a simple 2 column, in 2 row table (in database MySQL 'test_tb' tabe (first column) unique ID (in mysql type of type) and (second column) some text I'm getting the error: Warning : Error creating document: SolrInputDocument [{ID_F = ID_F (1.0) = {1}}] org.apache.solr.common.SolrException: document [null] missing required field: id Its What is the meaning? help please. schema.xml & lt; Field & gt; & Lt; Field name = "id_f" type = "string" index = "true" stored = "true" required = "wrong" /> & Lt; Field name = "COLA" type = "string" indexed = "true" stored = "true" required = "false" /> & Lt; / Regions & gt; data-config.xml & lt; DataConfig & gt; & Lt; Datasource Type = "JDBCData" driver = "com.mysql.jdbc.Driver" url = "jdbc: mysql: // localho...

python - Permanently add a directory to PYTHONPATH -

Whenever I use sys.path.append , the new directory will be added. However, once I have stopped the python, the list will return to the previous (default?) Values. How do I add a directory permanently to PythonPath? You need to add your new directory to the Environment variable Python Path , In any form of Unix, separated by a colon from its previous material, whatever you are using in a startup script, use the shell ( .profile or whatever, depending on your preferred shell On) can with an order which again, depends on the question; In Windows, you can do it for the purpose through the system GUI. superuser.com can be a better place to ask for further information, that means more information if you want special information about it in your chosen platform and shell in environment variable How to enrich it, because it is not really a programming question.

cocoa - CGImageGetWidth returns different size then actual image -

Hello, I have been reading a lot of images in my app and when I load the files, I get CImMaggetWidth and CGIMaggetHight Use images to get shape Although this does not return the right values ​​all the time. For example, if I have an image whose size is 114x14, these works 126x22 or something like that random. The odd part is that it does not happen all the time (changes to build from the build), but it is going to be the same group of images. P> So I have some sort of coding error that I do not know about or there are some settings in the images that handle them differently. Does anyone know what might possibly be the reason for such behavior? Thanks Check image resolution Some image formats are standard 72 pixels per inch Except for anything else, allow pixel-per-inch.

How to sell subscriptions with Django? -

I have to develop an application for selling web services. I have 2 goals: 1) Any customer can subscribe to the service and can pay it within a month. 2) A customer can pay for e-content and it studies unlimited time. Is there an external library for Django? You should take a look, including an application, find what you need Let's go for a long time to help you. If it exists and it is open source, then it is likely that it is there!

embedded - SAM-BA not responding with olimex sam7s256 -

Image
I am using the Olmex Sam 7S 256 board. I tried to get it and walk in linux (Ubuntu). I was able to successfully install GCC and binutils I have installed SAM-BA from Linux for Atom-site. I was able to get the USB port for the connection specified in the Sam-BA manual (.dev / ttyUSB0) But when I try to use the GUI and there is no answer to 'connect' I have a connection failure though, so when I press the reset button in the board, I get a message "Failed to start flash access "How long I wait before pressing the reset button, I can not find any SAM-BA window provided by other tutorials as below Anyone Can this help me? I set up a 'TST jumper', reconnected the board to 10S, disconnect and reset the 'Teest' jumper reset, before reconnecting the SAM-BA, any kind of help would be commendable. I'm stuck. This is similar to both Sam-BA 2.9 and 2.8. From this point you have already connected. If you have specified at91sam7256-ek, even if you ...

vb.net - How to get ip address for the local system -

Hi friends I am developing an application in which I am returning the IP address to a specific system and it Saving in database. When I check the database, this server is showing IP address. I want to get the special IP address that is running that application. So far I have this code: public function GetIPAddress () string string strHostName as string = system.Net.Dns.GetHostName () Dimension string strHostName1 = System.Net.Dns.GetHostName () Dim ipHostInfo as System.Net.IPHostEntry = System.Net.Dns.Resolve (System.Net.Dns.GetHostName ()) Dim IPAddress as System.Net.IPAddress = ipHostInfo. AddressList (0) IPAddress.ToString () termination function Keep in mind that in a machine Many IP addresses may be pointed out, so this is not really possible. Well, not even in theory - in practice, you can work to some extent together.

How to ensure an item gets deleted inside Repeater in Flex -

मेरे पास ऐसा कोड है: & lt; mx: पुनरावर्तक id = "allItemRepeator "डेटाप्रदाता =" {_ model.allItems} "& gt; & Lt; घटकों: घटक चयनकर्ता id = "घटक चयनकर्ता" डेटालोड = "{allItemRepeator.currentItem}" / & gt; & Lt; / mx: पुनरावर्तक & gt; जब सभी के लिए कोड में परिवर्तन होता है तो आइटम से स्क्रीन से आने वाले संस्करण की उम्मीद होती है लेकिन अभी भी स्मृति में बैठ जाती है! मैं एक फ़ंक्शन के द्वारा उस घटक के अंदर जानता हूं जिस पर "ट्रेस" है, इसलिए ट्रेस आउटपुट अभी भी प्रदर्शित होता है, जब भी घटक स्क्रीन से गायब हो जाता है। मैं कैसे सुनिश्चित कर सकता हूं कि तत्व हटा दिया जाता है, जब इसका संदर्भ हटा दिया जाता है? "पुनरावर्तक" की बजाय वस्तुओं को प्रदर्शित करने के लिए सूची-आधारित घटक का उपयोग करने से समस्या का समाधान होगा (यह मेरे कोड की महत्वपूर्ण प्रतिबंधात्मक आवश्यकता है, इसलिए मैं इसे करने से पहले पूछ रहा हूं) कुछ भी अभी भी घटक के संदर्भ में है, इसलिए यह कचरा एकत्र नहीं किया जा रहा है। विशेष रूप से बा...

Pivot in LINQ using lambda expression -

I'm writing lambda in linq to get pivoted data from the resulting list. To get the pivot column, I'm setting a condion to get the value. Here the problem is getting the default value, where the console fails. I do not want a column where the condition fails. I should help var query = dataList .GroupBy (c => c.ip.address). Select (G => New {IPAddress = g.Key, AssetType = G. Element at or Default (0) .AssetTypeName, AssetName = g.ElementAtOrDefault (0) .AssetName, // If the status fails I do not need this column, // is also giving C.D.S.Name == "active call", how to get dynamically ** ActiveCol = g.Where (c => c.DesName == "Active call") .Sum (c => c.CurrentValue), ** ** holdcall = g.Where (c => "CALL call"). Yoga (C = & Gt; c. Currentvalue), ** ** CPU = g.Where (c => c.DsName == "CPU"). Yoga (C = & gt; C.CurrentValue), **}); Why not only create a value to maintain yoga and then a type Specify the seco...

c# - Selecting a property based on Name in Linq projection -

मेरे पास एक वर्ग है सार्वजनिक वर्ग कास्टस्टोर {int DirectorateId {get; सेट; } दशमलव न्यूकार्स {get; सेट; } दशमलव ठेकेदार नया {प्राप्त करें; सेट; } दशमलव कॉन्ट्रैक्टररेन्यू {प्राप्त; सेट; } दशमलव ठेकेदार सूची {प्राप्त करें; सेट; } दशमलव ठेकेदार चोरी (प्राप्त करें; सेट; } दशमलव आंतरिक (प्राप्त करें); सेट; } दशमलव InternalRenew {get; सेट; } दशमलव InternalLost {get; सेट; } दशमलव InternalStolen {get; सेट; }} और मेरे नियंत्रक में मुझे पता लगाना है var c = p से _service.List ()। जहां (condition) p नीचे दिए गए फ़ंक्शन में एक सत्र चर के आधार पर अन्तर्निर्मित / आंतरिक रीन (आदि) संपत्ति, मैं यह कैसे linq कथन में कर सकता हूँ ... किसी भी विचार (_service.List () क्लास कोस्टस्टोर के IEnumerable को सूचीबद्ध करता है निजी स्ट्रिंग FindProperty () {स्विच (सत्र [constants.FORMSESSIONKEY] .ओस्ट्रैंक ()) {केस स्थिरांक। NETAPP: वापसी "आंतरिकनवीन"; केस स्थिरांक लौट: "आंतरिकलॉस्ट" लौटिए, केस स्थिरांक। एनईईसीएआर: रिटर्न "न्यूकार्", केस स्थिरांक। अन्य: रिटर्न ...

how to record phone calls in iphone using proramming? -

I should know that we can record phone calls in the iPhone, if possible, how can we do this by coding Are there. You can not do this not possible. Otherwise there will be about 400 apps in the App Store, which could do so.

algorithm - C# hashcode for array of ints -

I have a class that is internal only an array of integers, once the array is never built. I want to pre-calculate a good hashode so that this class can be used as a key in a dictionary very effectively. The length of the array is less than 30 objects, and the integers are normal between -1000 and 1000. Not very smart, but adequate for most practical purposes: Edit: Thank you for this, thanks to Henk Holterman's comment. int hc = array.Length; For (int i = 0; i If you need some more sophisticated, then

java - Is it resource-safely to use prepared statements multiple times? -

My application uses some prepared statement in every move of infinity loop. Is it safe to create a prepared position before the loop and to run only pstmt.execute in the loop? This is also interesting about simple statements. "infinity loop"? Sorry, it sounds like a bad idea. People are right when they say that calling a prepared statement several times in the loop is a good idea. But there is a loop with a definite start and end. I doubt your "infinite loop". It sounds more like a listener that you want to keep alive to respond to some database events. The answer is "This is okay," but it may be interesting to find out more about what you are doing. Update after comment: I have an Atom RSS server that listens for events. When there was a request, I had an RSS listener, who stopped for the service that receives connections from the connections pool, initiate a transaction, prepare the statement prepared in the law field, include the me...

Which design by contract framework for C#.NET? -

I am looking at the use of design by contract for a private project in C # using .NET 4. I'm reading about Microsoft's contract structure on attempts at design: But there are many options and I am astonished - who is the best and why? What are the pros and cons of each? Is there really many options? I have not heard about many people, there are other AOP frameworks, and there are some # like tips, but I have not come across many projects like code contracts. Considering that Microsoft has been integrated into Visual Studio under active development, core contract classes as part of .NET 4, I want to go with it as long as you have alternative options There is no concrete reason to use. The biggest downside of code contracts is that the stable checker is only available with Visual Studio Premium / Ultimate.

Ajax Hover Menu in asp.net? -

In my web application I am using the Hover Menu (AJAX) control I have two hover menu controls (the second hover menu A hover menu on it), it's working fine, I mean that the tow hoover menus are displaying properly in the Mozilla browser and it's not working in IE. Can you help me? I mean that a hover menu is displayed, but sencond is not displaying in IE. You probably have Internet Explorer z-index bogs -

layout - How to use jQuery draggable with fixed position? -

This works right in Firefox, but that does not work in Chrome and Opera. & lt; Div & gt; Status: Is fixed, and it is. Drug () and it does not work except Firefox Not defined in the CSS: It works in Firefox, Chromium, Safari, iCloud var div = $ ('# id'); Div.resizable ({stop: function (event, ui) {var top = getTop (ui.helper); ui.helper.css ('position', 'fixed'); ui.helper.css ('top', top + "Px");}}); Div.draggable ({stop: function (event, ui) {var top = getTop (ui.helper); ui.helper.css ('position', 'fixed'); ui.helper.css ('top', top + "Px");}}); Function getTop (ele) {var eTop = ele.offset () top; Var wTop = $ (window) .scrollTop (); Var top = eutop - wTop; Return head; }

linux - How do I inherit from and extend QCalendarWidget using C++ -

Currently QCalendarWidget supports SingleSelection or NoSelection I write a widget inherited from QCalendarWidget in Qt 4.6.2 Would like to be able and add the ability of the user to choose any day in the week and that custom week is selected. For example, click on Thursday 5 August 2010 and meet all day from Saturday to 31 July to Friday August 6. My experience with QT is limited and it has been a while since I have done some C ++ so I need to worry about implementing a Qt constructor or virtual destructors when Is inherited in QT, or is there any other harm? How do the headers and CPP files look like for this custom widget, and where is the best place to add my custom color logic and selection modes? I used GCC version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) and QT 4.6.2 After reading QCalendarWidget, I think First of all, the widgets included in the classes received from QObject should not be copy constructor. The explanation for this is that the QObject division is virtual...

.net - Can we have Class.Empty Object like we have in String.Empty -

I am using .NET 3.5. I am making a simple class and want to make sure that the orbital class after processing should not be meaningless or should not be new. So if we can test it the same way Do some processing with the class 'objClass ()' and then .. Check that If this object is not empty, then 'if (objClass = Class.Empty) then // what other stuff is / what other content termination is there any way we can do this empty area As we are in the string. Empty? But in your example the class is not technically empty You can use a default constructor Who has made the example, who knows, the default constructor can start with 10 MB string content. For example, see examples of VB constructor and what is happening. Compare if you have implemented correctly (...) You can call if (objClass.CompareTo (new category ()) == 0) So // What is the content other i.e. the other content ends if but it appears to be overwhelming / expensive, but the only way it will wor...

javascript - Mootools Click Event Problem -

This peace of code works for the first click. But then it is not able to get a new ID with the next click. The idea behind this is to show a piece of a form and click on a button to hide it first and the second part shows what any ideas are doing wrong? I think there is something with "this" in it but I think it should also get the ID from the second link. $ ('Hidden'); $ ('hide'); $ ('page'); $ ('page' Slide ('hide'); $ ('page_5') Slide ('Hide') var TogglePrint = 'Toggle_', BoxPrint = 'Page_', EmptyPrint = ''; var link = $ ('submit_box 'GetElements' ('A'); links.addEvent ('click', function (e) {estop (); var id = $ (this.get ('id'). Replace (TogglePrint, emptyprint)) var Id_new = parseInt ($ (this) .get ('id'). Replace (togglePrefix $ (Id_old) .set ('slide'),, {duration: 'long', transit: 'linear'}); $ (id_old ) .slide ('o...

c++ - which is the best way to generate choices out of a given set of numbers? -

For example, if it is given to make all the options between 1 to 5 and the answer comes in this way .. 1,2,3,4,5, 1-2,1-3,1-4,1-5,2-3,2-4,2-5, 3-4,3 -5,4-5, 1-2-3,1-2-4,1-2-5,1-3-4, ....., 1-2-3-4- 5 Can someone recommend fast algorithms? Just generate all 2 ^ N - 1 for one (or Zero if you want to include the empty set), the integers are indicated by the set bits in your set number. For example if you have 5 elements {A, B, C, D, E}, then the number 6 = 00110 will represent the subset {C, D}.

Using the boost random number generator with OpenMP -

I want to parallel my drop random number generator code in C ++ with OpenMP. I want to do it in a manner that is both efficient and thread safe, does anyone signal to me how it is done? I am currently locking down which is below; This thread is not obviously secure because there is the possibility of running the race in a stable variable normal function in the sample. The number of samples (nsamples) is much higher than n. #pragma omp parallel private (i, j) (i = 0; i & lt; nsamples; i ++) to {(J = 0; j & lt; n ; J ++) {Random matrix [i + nsamples * j] = sample normal (0.0, 1.0); }} Double sampling normal (mean repeating dual sigma) {// Create a Merson Twister random number generator stable Mtl9937 Rng (Static_cast and lt; unsigned> (std :: time (0)); // choose Gaussian probability distribution Samany_distrybandi & lt; Double & gt; Norm_dist (mean, sigma); // separate random number generator to distribution variate_generator & lt; mt19937 & amp ;, Gene...

canvas - Flex 3 - Custom tab navigator -

I'm trying to create a custom tab navigator to look like. In addition, when there is a rollover, the borders of the arrow should be in blue (as the label in the current tab). For that purpose, I have a custom component: a hbox that contains a label and a canvas with 3 images (depending on the current state of the arrow is to be changed for the tip). Then, I thought of overlapping the components to get the blue highlight color (ex: arrow arrow 3 arrow arrow arrow 4. In the Button 3 the image of the arrow tip will be transparent outside the arrow, so that we can see that the following button Black color). Now I am trying to replace the components inside the canvas ... but I can not. After the creation is complete, I provide the label text and I was computing the coordinates of the component but it does not take into account the width of the label ... -_- ' Any thoughts? Thank you regards, BS_C3 read on . You must be updated; Positioning and shaping your child...

mysql - How to syn identical innodb and read-only myisam tables -

I am planning two identical tables, one in the input and the other in the door. The Innodb table is for writing and updating and the Myisam table is completely read-only. What is the best way to sync Myisam table with Innosb table? The solution should not be real time. If I can sync them once a day, then it will be good. I search through the forum and give any suggestion that select the table * table selection * from the table * but this is a large table with millions of lines inserted into it I will take 5 hours for Any better suggestions? Why a weird setup? Unless you have a very large atmosphere, there is no difference in performance between these two engines. 2. Choose myisamTable from INSERT to INOD BTABLE AS T1 in the form of myIsamTable T2 ON (T1PP = T2PK) - To join WHERE T2, enter your primary Use the key. PK IS Null - In this way only the rows which are not present. IISAMTable will be copied Why not rotate after updating and afterwards?

java - Strange weka instance results -

There are strange results when using a J48 tree I need to classify the vector of 48 characteristics, which Works well, but when I try to "optimize", I get strange results. I have a method classified: classified public boolean (double feature 1, double feature 2, double [] featureweek) {for example twenty classified = new example (2+ feature a gender); ToBeClassified.setValue (0, Feature1); ToBeClassified.setValue (1, Feature2); For (Int i = 2; I It works very well, and I hope that I am correcting things but I want to delete the example construct which is done on every method call , So I transferred the instance to twenty classified = new installation (48); Line in the body of the body - hence it is created only once, it actually works well, despite this fact, I get slightly different results compared to the other, say, 400 classification, is different (say Not for, wrong). But I do not see any reason for this ... I hope some people are using Waqas so that I will u...

wpf - accessing a visual element in code -

I want to match the following xaml in the code, but I do not know how to capture that text block element: & lt; Local: Deaf TheWeekColumn ... & lt; Local: TheWeekColumn.Header & gt; & Lt; TextBlock Text = "{binding ...}, tooltip =" {binding ...} /> & Lt; / Local: DayOfTheWeekColumn.Header & gt; & Lt; / Local: DayOfTheWeekColumn & gt; The DayOfTheWeekColumn is a subclass of a DataGridTextColumn. I can easily get it on the header and set it to my content, and now I want to set the tooltip in the code, to find out how to do it in xaml above. Cheers, Berryl Edit ========= Even Code for DayOfTheWeekColumn is. XML is part of the text book headers' visual tree, and nothing else I want to put in XML. I want to put it in the tooltip, however, is in the code, so I can set it there. I am thinking that the column headers should have the property of a child, which I can use to find the text box, but the haven has not been found yet....

java - Can I run one SwingWorker within another? -

I need to run two swing workers s, only one of them should be run after the other. Could. Can I run them like this? class testwalker {personal firstwalker worker 1; Private Second Worker Work 2; Public TestWorker () {worker1 = new firstwalker} {@Override protected void done () {try {result1 = get ()}} hold (exception) {// exception handling} worker 2 = new seconds worker () {@Override Protected void done () {try {result2 = get ()}} hold (exception) {// exception handling}}} worker2.execute (); }} Worker1.execute (); }} And how can I cancel them? This way? cancels () (if (worker2! = Null) work2.cancel (); if (work1! = Null) work1.cancel ();} Thank you very much! You can do this way and it will work, however, Unless you have other operations in your external done , which you are not showing, then you probably will be better than some things, that is, both actions in doInBackground And an array was returned to the result.

How do I open an Access 97 data file using Delphi -

I need to read the data in the Access 97 file containing 400 records. I would like to use either Turbo DiPhoto Pro or dBASE SE I have only Access 2003 is the easiest way to act. If you decide to go with Turbo Delphi If you do, then you are on the adoconction component. When you configure the connection string, use the Jet Driver and point to your .mdb file. Then use it to get data.

Is ASP.NET name-mangling consistent? -

जब आपके पास ऐसा एएसपी नियंत्रण होता है: & lt; asp: treeview आईडी = "ट्री इटम्स" रनैट = "सर्वर" & gt; & lt; / asp: TreeView & gt; एचटीएमएल है कि यह नामों mangles उत्पन्न करता है यदि मैं सीधे उत्पन्न वस्तुओं के आईडी तक पहुंचना चाहता हूं, तो मैं कोशिश कर सकता हूं और यह पता लगा सकता है कि वह नाम कैसे दर्ज कर सकते हैं और उस आईडी की खोज कर सकते हैं। क्या आइटम तैयार किए गए हैं माइक्रोसॉफ्ट के मानक से कोई भी विशिष्ट तरीका क्या है? मैं सिर्फ इस तोड़ने से डरता हूं अगर वे एक अलग तरह से एनएटी के नए संस्करण को रिलीज़ करते हैं। कोड में खुद को संगठित करने का कोई तरीका क्या है? यह संगत होना जरूरी नहीं है (यह एक कार्यान्वयन विवरण है) बजाय ClientID का उपयोग करें (जो आपको उत्पन्न आईडी देता है)।

Grails 1.3.3 and Functional Test plugin 1.2.7 issues -

Is anyone working in Grails 1.3.3 functional testing plugin? I have used it with no problems in previous projects, but tried to install it with my new presentation. Run the script: create grails-functional-test xxxxx result in a test file. Here's the output: run script / user / day / gri / 1.3.3 / projects / connect / plugins / test-test -1.2.7 / script / creatively set on gravity environment Evolution [copy] / user / donation / dev / code / sterling / applications / grails / connect / trunk / connect / un / troj / connect / geiles-shared-files.jar in / user / charity / dev / code / sterling / Applications / grails / connect / trunk / connect [deleted] Removal: / users / dan / dev / code / sterling / applications / Grails / connect / trunk / connect / Grails-shared-files.jar [copy] / user / charity / dev / code / sterling / applications / grails / connect / trunk / connect to 1 resource copy [unjar] extension: / user / Dan / dev / code / sterling Removing / users / dan /...

Shell script to find files with similar names -

मेरे पास एक फाइल है जिसमें कई फाइल हैं: file001_a file002_a file002_b file003_a एक खोल स्क्रिप्ट का उपयोग करके, मैं सोच रहा था कि इस निर्देशिका में सभी फाइलों को सूचीबद्ध करने के लिए सबसे आसान तरीका होगा जो पहले 7 अक्षरों में डुप्लिकेट है; यानी उपरोक्त उत्पादन होगा: file002_a file002_b कोई भी मदद बहुत सराहना की जाएगी! एलएस -1 * _ * | (I) में प्रिंट I, a [i]} '' [एफएन = सबस्ट्रैक्ट ($ 0,1,7); एक [एफएन] = एक [एफएन] "सबस्ट्रैक्ट ($ 0,8)}" / कोड>

Security flaws to Apple iPad and iPhone via PDFs? -

Do any users know anything about these security flaws that have emerged from the German government of all people? Is it possible to understand what can be the type of vulnerability (such as on debit / credit card)? This is a vulnerability that affects the iPad / iPhone / iPod touch. It starts by looking at a specially designed PDF file and gives the attacker complete and total control over the system. Actually the attacker will have more control over the system than the user, or any app developer. The attacker will be able to get any and all information stored on the device, including credit card numbers and passwords, the attacker can install a backstarter and connect it to the internet at any time from the device. Apple has a bad history of security: To reduce this issue, you should avoid opening PDFs until you apply the iOS 4.1 patch. Expect more such weaknesses in the future.

c# - WCF maxReceivedMessageSize not working -

I have a WCF service that has these configuration settings. When I call it a client application I still say dangerously, "The item that can be serial or deserialized in the maximum number in an object graph '65536'" What is my configuration down? & lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; WsHttpBinding & gt; & Lt; Binding Name = "LargeBuffer" maxReceivedMessageSize = "2147483647" maxBufferPoolSize = "2147483647" & gt; & Lt; ReaderQuotas maxDepth = "2147483647" maxArrayLength = "2147483647" maxStringContentLength = "2147483647" maxBytesPerRead = "2147483647" maxNameTableCharCount = "2147483647" /> & Lt; / Binding & gt; & Lt; / WsHttpBinding & gt; & Lt; / Binding & gt; & Lt; Services & gt; & Lt; Service transaction support = "serviced" name = "testWcfService.Service1" & gt...

java - Getting started with DBA -

I have been a Java Professional for the past year, now I like to walk with Oracle and prepare for the OCA exam. I want to know the combination of Oracle and Java in the IT market. Being a DBA, my Java knowledge will be useful. Learn about the design of the database, take yourself a very big side, Work with As a DBA with a development background, you will be able to communicate with the developers because you understand your share of this project. Keep in mind, however, the role of DBA is very different than a developer, so make sure what you want to do. For the combination of Oracle and Java in the job market, you will not be disappointed.

Is there a unicode character that looks like an ascii one (but isn't equal)? -

I want to write a pre-interview question (for Java, but this is not important) that is a different answer You see it vs. if you copy-paste it and run it so that we can check that people actually do the problem themselves manually To do this, I am trying to find a Unicode character which looks like an on-screen character on an ascii character That at some point in my question I can have two ways with the same names but the integer / integer argument is) I know that this is potentially destructive, but I hope it is the other answers Will give an additional metric to validate. Note: I am trying to 'Turkey' - it seems that the ASCII - is there any Unicode version? Editing / NB: It seems that my intentions were wrong- explain ... these questions have to be done manually, not by the compiler They are copying the text and compiling it, they are bypassing the question, and they intend to travel (or more easily answer incorrectly). Whatever the two do, they will either...

java - Can I limit the length of text in a JTextField which can be painted, while still storing the full text? -

I have a text field in my application, even though it is a text field, users sometimes get too much text in it In addition, in addition to the other tasks of the problem, large amounts are also set. Sometimes there is too much text that JVM gets access violation in fontmanager.dll. Oracle does not seem interested in fixing the problem, so I want to try at least to avoid it. Limiting the amount of text User information is not acceptable (otherwise it will be the most obvious solution) but it is acceptable to allow it to be set and then disable the text field. When the text is forced back to the model, then the full text should be repeated in it. Since this is a bug in naturally viewing, I thought the fix must be in the scene, as opposed to working to add more properties to the model around it. My first attempt went something like this: Public Class LimitedTextField JTextField Extended {Fixed final full range = 10000; Personal string fullstring; @ Override Public Zero Set ...

sql - How to manage user and group using DB and PHP? -

The software for our internal team is the web site for the repository. Currently, many users are divided into different groups. To manage them, we are using string like '000101', and check '1 000101 and depending on it, we decide which group is '01111' => group 'test1' '10111' => group 'test2' '11011' => group 'axa1' '11101' => Group 'Axa 2' '11110' => Group 'Administrators' We do 'and' operations with user access with group ... Users = 'Any', Access = '01001' ... means that the user (a) group => Test 2 and comes under the administrator. We store this binary number. String for DB Now the situation is like an increase in the number of groups (60+) and I'm looking for some new logic instead of binary string to identify user and related groups. Post-text "itemprop =" text "> creating tables group_mai...