Posts

Showing posts from April, 2012

- Where Developers Learn, Share, & Build Careers

Let's say I have an AP / Assets / Image / Primetime / Maritrified Maze 1 I have an image on JPG if I directly image via Url http: // localhost: 5555 / assets / personal / myrestrictedimage1.jpg I I am able to see the image. I have a way to inspect any http request to determine whether the user has permission to access it or not. I know that I can use before_filter in controllers to perform some rehearsal. Before continuing on any of the controller functions, but I do not think it will help me because I am trying to take a controlling action for this. I have heard that I may be able to do this with a rake work, but after a lot of searching I did not get anything that I am trying to do. Maybe I have to make a ruby ​​gem to do this but I have no clue how to do this. Can anyone tell me in the right direction? Thank you. I used rack middleware The middleware class looks like this: / P> class MyChecker def initialize (app) @app = App and def call (env) if (...

- Where Developers Learn, Share, & Build Careers

Is there a way to install Memory and Sippy with Mac OS Tiger on Dragon 2.6.7? I know that Lion's Python 2.7 is also but I need to stick with Python 2.6 because I am using a module that does not work on Python 2.7. "itemprop =" text "> /usr/bin/python2.7 after, and so on 2.6 and 2.5 For /usr/bin/easy_install-2.7 :> Lion comes with one for each of its dragon implementation. However, Sippy needs the Fortran compiler, and the lion does not come with one of them. It also shows that you should be Fortran compiler before installing a nonpip or can not be installed later. First, you need the Xcode command line tool. (Depending on your version of Xcode, Apple often changes the name of the package is the "Unix development tools", or "CLI Development Tulcan may" etc.).) can be installed them by own Xcode If you are using 4.3.x, app after installing Aksod store, launch it, preferences, go to Downloads, ingredients and click on the insta...

scala Either & Neither handling -

Not sure what to call it, the option will only fit with either, to handle the third case the wanted. Scalaz already provides something like this, but without a separate library, I'm curious to know, anyone can process the following simple case: I have to see that a user session is present, as both the real users and administrators are taking pre-precedence as the log-in-in-user scenarios; If no condition exists, show the login screen. Checks for the actual user session: request.session.get (Security Username) Map {id = & gt; F (success (id.toInt, request))} getOrElse (onFail (request)) // onFail = show login and I must add the admin in the accused user case: request.session.get (Security.impersonate) map {id = & gt; F. (success (id.toInt, request)}} getOrElse (onFail (request)) I can get all this at once, but would like to clear some things, operation Regardless of user or administrator-of-user cases. not getOrElse, just orElse scala & gt; ...

python - How to make a custom Number class convertible to int & float? -

I have applied a number class in Python 3. Why do I need to do this float (min) works correctly? Document from: : object .__complex__ (self ) Object .__Int __ (Self) object.__ long __ (self) object.__ float __ (self) Int (), long (), and float () should return the value of the appropriate type

- Where Developers Learn, Share, & Build Careers

After I have created a cell array of structure-files like this, for example: & Gt; & Gt; Res2 res2 = column 1 through 7 [1x1 struct] [1x1 struct] [1x1 struct] [1x1 struct] [1x1 struct] [1x1 struct] column 8 to 10 [1x1 struct] [1x1 struct] [ 1x1 by struct] & gt; & Gt; Res2 {1} ans = nchi005_randchi005: 0.1061 nfdr_randfdr: 0.0011 nlgt_randlgt: 2.9517e-004 nphast_randphast: 0.6660 ndd_rand_dd: 0.0020 ndd_rand_dd_larger: 1 & gt; & Gt; Res2 {1} .nlgt_randlgt ans = 2.9517e-004 & gt; & Gt; Res {:}. Nlgt_randlgt ??? Bad Cell Reference Operation There is a possibility to access all of the nl2t_randlgt-fields of res2-cellarray at a time? All you need to do is get a struct array from a cell array for your res2 convert (using cell2mat ). You can then get the structure members in the same way you want. Here's an example, where cdat is a cell array of stricuttes with two members, s1 and s2 . cdt [[1x1 structure] [1x1 structure] [1x1 stru...

Save a hash into a mysql record using ruby -

मान लीजिए मेरे पास रूबी हैश है: व्यक्ति = {: name = & gt ;: एलेक्स, आयु = & gt; 10} काश मैं एक एपीआई को इस तरह बुला सकता हूं: db.save: people, person जो mysql डेटाबेस पर निम्न SQL निष्पादित करेगा: नॉटो लोगों (नाम, आयु) मान ('एलेक्स', 10) क्या यह रेल या अन्य रूबी रत्नों का उपयोग कर संभव है? आप कक्षा नाम पर कॉल कर सकते हैं बनाओ! (आपका_हेश), तो आपके परिदृश्य में यह इस तरह दिखेगा: व्यक्ति.कैक्ट! (व्यक्ति) # को तुरंत रिकॉर्ड बनाने के लिए या व्यक्ति = person.new (व्यक्ति) # वस्तु को पहला व्यक्ति आरंभ करने के लिए # save # और उसके बाद इसे सहेजना कोई भी उपयोग करने की आवश्यकता नहीं है बाह्य रत्न, यह मानक ActiveRecord है, जो कि रेल कोर पुस्तकालयों में से एक है।

Java applet can't access non-public file on same webserver -

I am creating a Java applet for a customer, and I have a problem where I need to read / write For a file on your web server, but that file, in any case, can not be publicly accessible The Java applet and the file are both on the same server, and I am in the same folder File and .jar file, but if I have them different Trying to access the file in the same folder and test = WorkbookFactory.create (new file ("test.xlsx")) I have tried writing a full path to the file, and anything seems to work. The error I am getting is: by Reason: java.security.AccessControlException: access What is the best way to read / write files on a single server What will be seen in public? If you think Java applets work, there is a basic misconception. They do not run on the server, they run on the client in a web browser. If the client's web browser does not have access to the file, then the applet can not be used.

jquery - Is there any data query library for Javascript? -

I search & gt; On the Critical Search Demo and really like the Advanced Search Box, which is a powerful query-based search near Excel. I want to reuse this advanced query interface for other applications and purposes instead of jqgrid. Is it possible to reuse it to query external JSON data without going through jqgrid? I do not know how jqgrid made it, so I'm thinking that it has some built-in jquery UI search module or plugin that I do not know about. Thank you in advance if you can give some suggestions like you XPath JSONPath: jQuery jfunk CSS Jsonselect LINQ linq.js

javascript - I need help getting my slide to top accordion to stop below my fixed top header -

I think this is a css problem, but this js . When my accordion link is clicked, they should open and slide to the top of the page - whatever they do, however, I have a fixed heading header and they are sliding behind it, I have about 60 px lower on the page This is necessary to stop the level so that it is visible. Offset value for each item in accordion Is set, in which the line of jquery.accordion.js is 102. You can subtract just one static number in that value for each number (you have suggested 60px) so that how far in the document can be scrolled. To do this beautifully, I will pass it as another option which you can get from within the script by doing something like this (assuming that your option is scrollOffset : _saveDimValues: function () {scrollOffset = this.options.scrollOffset; it. $ Items.each (function () {var $ item = $ (this); $ item.data ({ OriginalHight: $ item.find ('a: first'). Height (), offsetTop: $ item.offset (top) - top of scrolloff...

Target specific participant in Google Hangout API? -

I'm trying to create a Google Hangout app as a game, but I'm sure with the current Google Hangout API So for targeting a specific user, for example, if I want to be a special partner to be the only person who can see a device in the app, then how can I limit the basis of a specific user id? You can use the gapi.hangout.getParticipantById (gapi.hangout.getParticipantId ()) Participants can be received (see for more information). The Google ID is stored in the participant object in the person.id field (see for details about the participant object). So once you have an attendee for the current user, then check the person.id field to see if it matches the person in question. There are other fields that may be more suitable for your exact requirements, however, I encourage you to see and experiment different areas and methods.

ios - Under ARC, need to set nil to all the strong member when unload the viewcontroller? Is that a must? -

Suppose I have a view controller like this: @interface controller A: View Controller {NSString * __storage A; } @end and viewDidLoad function I set a = [[NSSString alloc] init]; and in another controller, {controller A * controller A = [[controller alloc] init]; } Can a member of the controller be released? Yes, string is indicated by a , when Controller A is deallocated to . You do not need to set it to zero . There is currently a place to see more information about working with ARC. An important point is that you may still need a custom -dealloc , if your class needs to do anything apart the example variable After issuing when these examples are distributed.

c++ - Difference between a static and dynamic array -

Friends I was just playing around with some pointer programs and felt that the GCC (and probably standard standard) Differentiates and dynamic arrays. In an array there is a place holder for the address of elements, while for the stable array, there is no memory place where the compiler element stores the initial address of the array. I have an example program for displaying my confusions. #include & lt; Iostream & gt; # Key (zero) {int_static [10]; Int * _dynamic; _dynamic = new int [10]; Std :: Court & lt; & Lt; "_static =" & lt; & Lt; _static & lt; & Lt; "& Amp; _static =" & lt; & Lt; & Amp; _static & lt; & Lt; "& Amp; _static [0] =" & lt; & Lt; & Amp; _static [0] to be & lt; & Lt; Std :: endl; Std :: Court & lt; & Lt; "_dynamic =" & lt; & Lt; _dynamic & lt; & Lt; "& Amp; _dynamic =" & lt; & Lt; & Amp; _...

.htaccess - How to redirect subdomains to index.php and keep subdomain url visible in address bar? -

मेरे पास एकाधिक डोमेन वाले साइट हैं, जैसे sub1.mydomain.org , sub2 .mydomain.org । । वर्तमान में मेरे पास यह एचटीएक्सस कोड है जो इन सभी सबडोमेन को index.php पर रीडायरेक्ट करता है और सबडोमेन नाम को एक चर के रूप में देता है: विकल्प + अनुवर्ती लिंक पुनर्लेखन इंजन पर पुनर्लेखन नियम ^ (। *) $ Http://mydomain.org/index.php?subdomain=$1 [क्यूएसए, एल] सब कुछ ठीक काम करता है, सिवाय इसके कि यूआरएल एड्रेस को mydomain.org/index.php?subdomain= (उप तक पहुंचा) पर बदल रहा है। मैं उपडोमेन का नाम प्रदर्शित होने देना चाहता हूं। मैं यह कैसे कर सकता हूं? मेरी साझा मेजबान साइट के रूप में संरचित है / username / public_html / addon-domain/index.php / username / public_html / addon-domain उपरोक्त htaccess फ़ाइल में है / उप डोमेन / उपयोगकर्ता नाम / public_html / addon-domain / उपडोमेन / उप-1 / उपयोगकर्ता नाम / public_html / addon-domain / उपडोमेन / सब 2 ... उपरोक्त htaccess फ़ाइल उपडोमेन निर्देशिका। संपादित करें: ----- समस्या हल की गई लेकिन नई स्थिति में आने पर ------- मेरे HTAC...

iphone - Hide footer view in UITableView -

I'm working for HideViewView . My problem is that when I click on the button, I click on a button and the button will be added as the last section and the button will also move to the newly created section and now I After updating the footer section to hide the sections. footerView.hidden = yes I used it in button action but it is not working. There are four solutions in my mind, Solution 1: tableView.sectionHeaderHeight = 0.0; TableView.sectionFooterHeight = 0.0; - (CGFloat) Table View: (UITableView *) Table High Height Fairhead Insension: (NSInteger) section {return 1.0; } - (CGFloat) Table View: (UITableView *) Table High HeightForFooter Insension: (NSInteger) section {return 1.0; } - (UIView *) Table View: (UITableView *) Table View View ForHeaderInSection: (NSInteger) section {return [[UIView alloc] initWithFrame: CGRectZero]; } - (UIView *) Table View: (UITableView *) Table View View ForFooterInSection: (NSInteger) section {return [[UIView alloc] initWi...

- Where Developers Learn, Share, & Build Careers

Can you help me with WFS on GeoX? Read the tutorial and see this code. Proxy: New GeoExt.data.ProtocolProxy ({Protocol: New Open Layers. Protocol. WFS ({url: "/ geoserver / ows", Version: "1.1.0", FeatureTip: "Park", feature ns: "http://medford.opengeo.org", srsName: "EPSG: 4326"}}}) After this I have this vector vector layer = new See Open Layer. Layer.Vector ("Editable Features"); And do not understand how to make a layer. So I have some questions. How to get 1 URL? (I use Geosarvers) 2 Type the specialty feature. 3 more important. Is this code correct? I find it here Hope it helps someone // wfs var myStyle = OpenLayers.Util.extend ({}, open layers.feature.vector style ['default']); MyStyle.strokeWidth = 1.5; MyStyle.strokeColor = "# ff0000"; MyStyle.fillOpacity = 0.1; OpenLayers.ProxyHost = "proxy.cgi? Url ="; Var Renderer = Open Layers.out.get parameter (window.location.href) ....

tridion - restrict user to insert same component and template -

सम्मिलित घटक पॉपअप विंडो के अंदर एक पृष्ठ में। जब उपयोगकर्ता एक घटक और एक टेम्पलेट का चयन करने की कोशिश कर रहा है, तो कैसे घटक और टेम्पलेट * के समान संयोजन को चुनने के लिए उन्हें प्रतिबंधित करें - जो घटक सूची में पहले से मौजूद है। मैंने डालने बटन पर एक जावास्क्रिप्ट लिखने का सोचा था। कृपया सुझाव दे कि मैं सही रास्ते पर जा रहा हूं। जैसा कि बार्ट आपके प्रश्न के ऊपर कहते हैं, आश्चर्यजनक रूप से अस्पष्ट है, लेकिन यहां एक जवाब देने का एक प्रयास है क्योंकि मैंने अभी कुछ इसी तरह किया है। अस्पष्टता को देखते हुए, मैं मानता हूं कि आप जेएस कोड में गहरी घुटने लगा रहे हैं और मैं यहां जो डाल रहा हूं वह आपको समझ देगा:) आपकी जावास्क्रिप्ट में आप चयनित घटक प्रस्तुति को संग्रहित करेंगे किसी प्रॉपर्टी में, आपके उपयोगकर्ता को सूची में किसी दिए गए सीपी पर क्लिक करता है, उदाहरण के लिए: वर्तमान चयनित घटक प्रस्तुति का संग्रह रखता है pselectedComponentPresentation; बस का उपयोग करने के लिए: var घटकप्रदर्शन = p.selectedComponentPresentation; और सेट करने के लिए आप देख सकते हैं कि मैं प...

blocking - What's the difference of Event and Lock in python threading module? -

क्या इन दृश्यों में ईवेंट और lock ऐसा ही करते हैं? वर्ग MyThread1 (threading.Thread): def __init __ (घटना): self.event = event def रन (स्वयं): self.event.wait () # कुछ स्वयं। Anvent.clear (): अन्य: वर्ग MyThread2 (थ्रेडिंग। थ्रेड): def __init __ (ताला): self.lock = lock def run (self): Self.lock.acquire () # कुछ स्वयं करो। Lock.release () यदि आप एक घटना पर प्रतीक्षा करते हैं, तो एक event.set () होता है event.wait () # तक इंतजार करता है जब तक event.set () lock.acquire () # पहली बार: true lock.acquire () # दूसरी बार लौटाता है: लॉक से बाहर स्टालों .release () दोनों वर्गों के अलग-अलग उपयोग के मामले हैं आप अंतर को समझने में मदद करेंगे

iphone - navigation bar in popover -

Image
There is a problem with my navigation bar , when I present it through a popover, my The navigation bar was hidden, like this: should be: My code: self.popoverController = [[UIPopoverController alloc] initWithContentViewController: imagePickerController]; PopoverController.delegate = self; CGRect popoverRect = [change self.view: Change from [tsuikaButton Frame]: [tsuikaButton superview]]; PopoverRect.size.width = MIN (popoverRect.size.width, 100); [Self.popoverController presentPopoverFromRect: popoverRect inView: self.viewAssuranceAir Direction: UIPopoverArrowDirectionAny Animated: Yes]; [PopOreController Setpopper contentS: CGSizeMake (1024, 500)]; Thanks for the help. Are you trying to take the ImagePickerController full screen? If so, have you thought of not just pushing it and using the popover controller?

- Where Developers Learn, Share, & Build Careers

I'm new to Android development. I was just looking for a notification to launch any app on Android. Whenever another third app is launched on the device, my app should be notified with that app information. In this, Palm, Windows Mobile and everyone, are thinking about anything available on Android. Please suggest me Thanks To check whether you want to show notifications, your application Show the dialog in the startup before and save the result in the shared pages. If the person chooses the Yes: Keep the right in SharePreferences and send the user to the GCM server to send the information. Information about GCM:

performance - Very slow Eclipse 4.2, how to make it more responsive? -

I am using Eclipse PDT on a large PHP project and IDE is almost useless. It takes about 30 seconds to open the file, and other tasks, such as choosing a folder in File Explorer, some text editing and more. It is equally slow. I followed various instructions to speed it up, but nothing seems to work. This is my current eclipse.ini file. Any idea how can I improve it? - Start Plugins / org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --Lineer Library plugins / org.eclipse.equinox. Launcher.win32.win32.x86_1.1.200.v20120522-1813 -showshipapp org.eclipse.platform - Launcher. Xxx system 256 m - launcher. The default action Opanfail - Vimarjis-server-Dosikrekwardjawa Virsian = 1.7 -Xmn128m -Xms1024m -Xmx1024m -Xss2m -XX: PermSize = 128m -XX: MaxPermSize = 128m -XX: + UseParallelGC System: Eclipse 4.2.0, Windows 7, 4GB RAM

- Where Developers Learn, Share, & Build Careers

I tried to find the factual number of a large number eg Using a loop and double data type in 8785856 in a specific way. But it is displaying infinity as a result, maybe because it exceeds its limit. My code: class abc {public static void main (string [] args) {double fact = 1; (Int i = 1; i & lt; = 8785856; i ++) for {fact = fact * i; } System.out.println (facts); }} Output: - Infinity I'm new to Java but some of the Io concepts Have learned - Ningling and all. public static zero main (string [] args) {BigInteger Facts = Bigtega. 1); For (int i = 1; i & lt; = 8785856; i ++) Fact = facts Multiply (BigInter.Voof (I)); Println (fact); }

php - Removing newlines from ob_get_clean() output -

ठीक है मेरे पास यह निम्न कोड हैं & lt;? Php ob_start (); ? & Gt; कोडपैड एक ऑनलाइन कंपाइलर / दुभाषिया, और एक सरल सहयोग टूल है। अपना कोड नीचे पेस्ट करें, और कोडपैड वाई इसे चलाएगा और आपको एक छोटा यूआरएल देगा जिसे आप इसे चैट या ईमेल में साझा करने के लिए इस्तेमाल कर सकते हैं & lt;? Php $ str = str_replace ('\ r \ n', '', trim (ob_get_clean ))); प्रतिलिपि $ str; ? & Gt; और आप देख सकते हैं कि यह कैसे काम करता है अब मैं यहाँ क्या चाहता हूँ संग्रहित आउटपुट से नई लाइनें निकालना है कोड> ob_get_clean () । मैंने लगभग पूरी तरह से इंटरनेट के चारों ओर देखा कि कैसे स्ट्रिंग में नई लाइनें निकालनी हैं और यह धीरे-धीरे preg_replace () का उपयोग करने से नई लाइनें निकालने का सामान्य और सबसे तेज़ तरीका है। ऐसा क्यों होता है? यह पहले से ही एक बग है? या मैं बस कुछ याद किया? \ r \ n खिड़कियां शैली है, लेकिन अगर उपयोगकर्ता लिनक्स या मैक, यह अलग होगा तो सबसे अच्छा समाधान है: $ str = str_replace (सरणी ("\ r", "\ n"), '', ट्रिम...

java - how to set line width & color of connection line in draw2d? -

I am trying to set the width and connection line color in draw2d. I found the method "SettleWidth ()" method but I need to call this method. I call this method on the input port object but Plz does not work help me Can you post some of your code? This is working for me: Polyline connection connection = new polyline connection (); Connection.setLineWidth (2); Connection.setSourceAnchor (new channel start anchor (this)); Connection.setTargetAnchor (new ChannelEndAnchor); Display display = Display.getCurrent (); Last color connection: ColorHoover = display.getSystemColor (SWT.COLOR_RED); Last color connection color = new color (display, 54,82,111); Connection.setBackgroundColor (connectionColor); Connection.setForegroundColor (connectionColor);

- Where Developers Learn, Share, & Build Careers

I'm looking for a jQuery mobile image slide show that is compatible with PhoneGrap. I checked this one :, but it does not seem to be an active community around it, for example the issues I registered never got the answer. I had a look at this: but it uses an external XML file, and I do not want to write an XML file for each slide show that I want to show. Now, what is a proven image slideshow for jQuery which is compatible with the phone? You can go for which the best people have used it successfully with jQuery mobile. You can also try

java.lang.OutOfMemoryError in my android application -

I have 18 images that make a flower while overlapping each and every app in the form of a stack. XML files are added to the activity in the Android: src: '@ drawable / blabla ..' ... but when I run my application, it returns an error java.lang. OutOfMemoryError Please help me ... I know that I have this problem. Thank you ... Public class PapatyaFaliActivity extends activity {no G integer [] startLeafID = {R can solve .id.imag, R.id.birstart, R.id.ikistart, R.id.ucstart, R.id.dortstart, R.id.besstart, R. Id.altistart, R.id.yedistart, R.id.sekizstart, R.id.dokuzstart, R.id.onstart, R.id.onbirstart, R.id.onikistart, R.id.onucstart, R.id. Ondortstart, R.id.onbesstart, R.id.onaltistart}; Private imagev [] paperstraft = new imageview [17]; Private integer [] leafResouseID = {R.drawable.papatya_orta, R.drawable.leaf_1, R.drawable.leaf_2, R.drawable.leaf_3, R.drawable.leaf_4, R.drawable.leaf_5, R.drawable.leaf_6, R. .drawable.leaf_7, R.drawable.leaf_8, R.drawable.leaf_9, R....

php - Joomla if else for menu by ID or url -

I have a situation under which I have to show my two pages differently, but they do not have front pages Are there. If they were, then it would be easy because the code given below will move. $ menu = & amp; JSite :: getMenu (); If ($ menu-> getActive () == $ Menu- & gt; getDefault ()) {resonant 'This is the front page'; Esle (do something else)}? & Gt; In short, I want a similar approach, but this time, to get the menu by ID / URL. Any ideas? I got the answer ... You only need to check the menu ID then the code below Enter & lt ;? Php // This menu ID 6 $ menuID = JSite :: getMenu () - & gt; GetActive () -> is the code for the page with; Id; If ($ menuID == '6') {echo ''; } Elseif ($ menuID == '2') // This is HTML for page with menu id 2 {echo ''; } Elseif ($ menuID == '4') // This is html for page with menu id 4 {echo ''; } Else // This is the HTML code for the rest of the pages (echo ...

cryptography - RSA PKCS#1 V2.1 implementation in C++ -

Where can I get the PRCA PKCS # 1 V2 implementation in CSIL? I have found an implementation, but I'm not sure that it fits with that standard. Can anyone explain key differences between the different implementations of the RSA algorithm which could be the reason for inconsistency in the operation? RTA algorithm is a primitive you can use for two purposes: Privacy ( I.e., public key encryption), or the original proof (which is, the digital signature is mixed with a cryptographic hash) PKCS # 1 Most people refer to RSA-based encryption and signature nowadays. More specifically, PKCS # 1 (2.1) The most recent version defines four different plans: PKCS # 1 v1.5 encryption (for purposes of inheritance only, no one should use it anymore) OAEP encryption (to be preferred for any new implementation) PKCS # 1 v1.5 signature PSS signature In other words, when you say " RSA PKCS # 1 v 2.1 ", then you can change any of the above schemes Because the ...

- Where Developers Learn, Share, & Build Careers

Is there a way to get the height of the table before adding it to the document? At first glance, I think the number of rows in the table is enough to calculate the height because I know the size of the font. However, some lines broke that rule. For example, a cell can store a paragraph that contains more than one row. Therefore, what I should know, is the total number of heights of each row. Yes, the answer was not complex. To get the height of the table, first the width of the table must first be set. In other words, table.setTotalWidth ((PageSize.A4.getWidth () - document.leftMargin () - document.rightMargin ()) * table.getWidthPercentage () / 100); Println (table.calculateHeights ()); Gives the height of the table.

.htaccess: Rewrite to folder except if cookie exists or before a date bypassing WordPress rewrite -

I migrated here at the static site WordPress-based website, these days a lot of time. Once I have finished developing a WordPress website on a test server, I want to install it on the existing website domain, but without affecting the old static site - until the site is live. My idea is to get the current non-wordpress website to a folder / old / and to get all the requests to rewrite this folder (and hence Keeping all URLs for SEO purposes only). I can not believe it myself and other authorized people want to Czech via a cookie (it will be set through a simple "login" PHP file, because I fixed IP address ) Or if the current date and time are after the live date, then WordPress repeat rules repeat their course to give access to the WordPress website. Before I present or which will add a simple countdown timer on the old site will live automatically Live on the new site My simple login.php script like this :? & lt; Php setcookie ("Login to" ...

linq to entities - Entity Framework - how to save entity without saving related objects -

In my unit framework, I have three related entities, such as' clients ',' Client Address 'and' LookupAddressType '" LookupAddressType " A master class specifies the type of available address type, like business address, residential addresses, etc. LookupAddresstype and dependent clients on> ClientAddress . Savings Client unit with relevant ClientAddress data, I'm getting the following error. "PRIMARY KEY constraint violation 'PK_LookupAddressType'. Can not insert duplicate key in object 'dbo.LookupAddressType'. The statement has been terminated. I insert not need LookupAddressType. I just need to be put in the relevant lookupAddressTypeId client Atader unit. saving code like this: Add (Client); _objectContext.SaveChanges (); How can I do this Without the Load Code Che :? private void LoadClientDetails (EFEntities.Client _Client) {EFEntities.LookupClientStatu clientStatus; var clientAddres...

wcf - Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:8083/xyx/mex' -

I am trying to add an Enum member to an already existing data contract. When I try to update the context of the service, I get an error "Metadata contains a reference that can not be solved: 'net.tcp: // localhost: 8083 / xyx / mex'". Many issues related to this issue Many thanks Studio \ Common 7 \ IDE \ WcfTestClient.exe

Pattern Matching using brute force in openCL -

I've stored the text [textLength] in an array, and pattern in the array [pattern length] cl_char * a = (cl_char *) mlok (text langam * clamp (cl_char)); For (int i = 0; i & lt; textLength; i ++) {a [i] = text [i]; } // A buffer object memory is a handle for an area of ​​cl_mem a_buffer = clCreateBuffer (reference, CL_MEM_READ_ONLY | // buffer object read only for the kernel dropdown CL_MEM_COPY_HOST_PTR, // copy host indicator textLength * sizeof referenced by // memory Data (cl_char), // size buffer object bytes, // host pointer tap); // An error code // text and pattern kernel arguments cl_char * b = (cl_char *) for malloc returned (Patternally * size (cl_char)); For (int i = 0; i & lt; pattern length; i ++) {b [ii] = pattern [i]; } // A buffer object has a handle for an area of ​​memory / * cl_mem b_buffer = clCreateBuffer (reference, CL_MEM_READ_ONLY | // buffer object referenced only for readable kernel CL_MEM_COPY_HOST_PTR, // host indicator refers data from me...

cygwin - ERROR [+2640] TreeBuildCommand: TB commands must be in sequence -

I've added a few words like the name of the fruit in the sample tutorials available in the voxforge julius tutorial. I think the grammar and the whic file is correct and I got stuck in this last step on this last error. I have checked my monophones0 file, I have made a change to it, I am copying it as it is the tutorial made a tree with a parallel command. I do not know why I have this error now. TB 350.00 ST_a_2_ {} tree based clustering error [+ 2640] Tribulum Commands: TB command must be in order Need help !!! You need to modify perl script to work with your fornate. As a result, lines like plantation should not be done. TB 350.00 ST_a_2_ {} Instead, the lines should be visible TB 350 "ST_jh_2_" {("jh", "* - jh + *", "jh + *", "* - jh") State [2]}

iis - ASP.NET - Overwritten log file -

I have an asp.net application every time I use the 'Publish Web Site' option in Visual Studio , Log files on the log file (/logs/log.log) are overwritten on the server and the networker service is not yet accessible. I have tried to change permissions in IIS. Right click on the folder in IS and select permissions, though the permission is still back. How can you permanently change permissions? The solution was to write a batch file that was run each time an update is there.

mysql - How to delete an item from combobox during runtime after deleting from the database -

private sub btn_remove_Click (ByVal as the System.Object, ByVal e System.EventArgs) as handle btn_remove.Click dim query string dim QUERY1 string integer as in as dim i = 0 i = DataGridView1.CurrentRow.Index dim strValueYouWant string = String.Empty strValueYouWant = DataGridView1.Item (0, i) .Value dim result1 as DialogResult = as MessageBox.Show ( "", then MessageBoxButtons.YesNo) result1 = DialogResult.Yes then mysqlconn.Open () query = "do you want to delete your selected line, sure", _ "Remove important question from table1 where show_id = '" & amp; StrValueYouWant & amp; "" Retarded MySqlCommand = new MySqlCommand (query, mysqlconn) dim K = integer CmdkExecuteNonQuery (as) query = nothing cmd.Dispose () selected cmd = "table1 as QUERY1 *" New MySqlCommand (QUERY1, mysqlconn as cmd1 dim) slow reader MySqlDataReader = cmd1.ExecuteReader as in the form of a new table of dataTable () table.Load (reader) DataGridView1....

- Where Developers Learn, Share, & Build Careers

I am using Team Explorer everywhere with Eclipse when I try to check-in my changes I get the following error: Access TFS server denied access to myServerAddress (authentication as myComputerName / myUser) I received the Tried to use the CrossPlatformCommandLine tool with tf profile command, but I got the following message one Rk error: command 'profile' is unknown I can how to manage your credentials? The profile was removed from Team Explorer everywhere 2012. TE 2012 certification is as follows: If you have specified credentials on the command-line, then it will be used. If you have specified credentials for your TFS server, then it will be used. On Windows, TE will use credentials. On Mac OS, TE will use credentials in the chicane. On other Unix systems, the TE file will use e $ HOME /. Microsoft / Team Foundation / 4.0 / Configuration / TEE-Servers / Credentials.xml . If no stored passwords are available, then TEE 2012 will...

Generate a PDF poster in C# -

I need to generate a poster in a PDF format based on a template. This PDF should have custom text and image provided through a web application. I know that you can add fields in a PDF, then fill them with something like iTextSharp (I am using #), but They have a solid background, so the posters can not be overlaid. I have tried to make a transparent form control in the OpenOffice but it does not seem likely. Can anyone recommend a way to fulfill this requirement? Many thanks This can be done using ITxSHRP . Its a very powerful PDF library, keep the background as a PDF and load it into a stream. You can then write on the loaded PDF and return the poster. Private PDF contentbite_pbb; Document document = new document (); Filestream file stream = new file stream (file path, open filemodel, file access reader); PdfReader Mypdfreader = New PDF Reader (file stream); PDF template background = author. GetImportedPage (Mypdfreader, 1); Document.NewPage (); _pcb = writer.DirectConte...

xml - XSL: Spurious output using template match -

I have an XSL stylesheet that I use to make XHML pieces. XML has a lot of information and I want to change only one special section, I match it like this (note this is my top level / first match): & lt ; Xsl: template match = "root / systemInfo / Errors" & gt; This works very well, however, I am being written 1001 before the output I want. On the next inspection this is the data of various tags that carry forward the matched xpath "root / systemInfo / errors" . What can I do to prevent this from happening? Example xml: & lt ;? XML version = "1.0"? & Gt; & Lt; Root & gt; & Lt; Settings & gt; & Lt; Enabled & gt; 1 & lt; / Enable & gt; & Lt; Mode 1 & gt; 0 & lt; / Mode1> & Lt; Mode 2 & gt; 0 to & lt; / Mode 2 & gt; & Lt; Border & gt; 1 & lt; / Border & gt; & Lt; / Settings & gt; & Lt; SystemInfo & gt; & Lt; Errors & gt; ...

Take object out of JSON Array -

I am trying to select a specific object in a JSON query. I have decoded it, and although I have spent a few hours searching for answers, I am unable to determine one for this specific case. I would like to select the URL from the blog response, although I can not go behind the array. $ oauth-> Fetch ("http://api.tumblr.com/V2/user/ info"); $ Json = json_decode ($ oauth-> Milest Response ()); $ Url = $ json- & gt; Feedback-> User-> Blog; $ Url1 = array ($ url- & gt; url); // This line does not give me a URL - I get an array ([0] = & gt;) print_a ($ url1); When I do not run the array, I give it: array ([0] => stdClass object ([name] = & Gt; 12748784 [URL] = & gt; http://12748784.tumblr.com/ [followers] => [[primary] => 1 [title] = & gt; untitled [description] = > [Admin] = & gt; 1 [Update] => 1341883193 [Post] => 1 [Draft] => [[Message] => 4 [Queue] => 0 [asks] = & gt; 1 [ask_anon] = & gt; [...

android - Does deleting data from a database affect the cursor storing the data? -

I have to take some files from database A to databases Therefore, I ask the data databases Remove the data from A to cursor, then in database A. After that, I use the cursor to insert data rows to the database. Is there a problem in this process? Because someone told me that the cursor can only be a reference, in fact the cursor does not store the data in the object, so if I remove the database A before inserting data in Database B, So something unusual can happen! Is there anyone who refers to the cursor database or does it really save the data object? Your case will not work The cursor is a reference to a part of the memory. If you delete the database then the data in this part of memory will also be removed. You can use the cursor, but you must delete your old database only after the migration. Why do you want to delete the old database before entering results in a new database?

NodeJS API - security issues -

I am creating an API in Nodesj, which will be used by a website and the iPhone Native App at the same time. The API URL will open in front of the user when used for JavaScript in the website. I only want authorized access to APIs. Nobody wants to call API via console. Like user / delete / [user-id] , anyone can delete this user by using this URL. check out There are a lot of authentication strategies to use here Do not re-enter;)

jquery mobile - Prevent form element from spanning horizontally -

Elements (jQuery) by default in jQuery's mobile span, on the full width of the screen. How can I fit them to the size of my content? You click on the data -inline = "true" button and select them Select to extend the width of your content.

javascript - Retrieve URI of an XML DOM object using Internet Explorer -

In the Firefox and Chrome documentURI , the property of an XML Dome document node will return the property of DOM URI if it is created using the XMLHTTPRequest object. Is there an equal asset for Internet Explorer Dome, and if so what is it? The documentURI , url , url and baseURI attribute all return either blank or undefined. url For the property I hope this will return the URL used in the HTTP request that was created in DOM - but given examples does not use XMLHTTPRequest . The code used to make domes and then the following is the test of the property: function getXslDom (url) {if (typeof XMLHttpRequest == "undefined" ) {XMLHttpRequest = function () {new ActiveXObject ("Msxml2.XMLHTTP.6.0"); }; } Var req = new XMLHttpRequest (); Req.open ("GET", url, false); Req.send (zero); Var position = req.status; If (condition == 200 || condition == 0) {return req.responseXML; } And "throw" "+ HTTP request for" + url ...

c# - "location" based Authorization -

I have a VS The 2008 web application is running on IIS 6. In the web Conif Willy is a section like this: & lt; Location Path = "Public" & gt; & Lt; System.web & gt; & Lt; Authority & gt; & Lt; Allow users = "?" / & Gt; & Lt; Allow users = "*" /> & Lt; / Authorization & gt; & Lt; /system.web> & Lt; / Location & gt; I have a user control that is used on many pages of different places to provide content. I want control for filtering the content based on the location of that page which is current. For example, if there is a control over the ASPX page located in the "Public" folder specified in the above sample, then I should not see some information. How can I do this in my code? It may also be that the web The config setting is completely irrelevant, for this question, you decide. VB or C # OK, I can translate. Maybe something like this? If Path Includes ("public"...

c++ - Operator <> overloading -

संभव डुप्लिकेट: "आपको एक क्लास को कार्यान्वित करने की आवश्यकता होती है, जिसे अवधि कहा जाता है, जो समय की लंबाई का प्रतिनिधित्व करता है, घंटे, मिनट और सेकंड में व्यक्त करता है, उदाहरण के लिए सीडी पर एक ट्रैक की लंबाई या मैराथन चलाने के लिए लिया गया समय। एक उपयुक्त कन्स्ट्रक्टरों (त्रुटि जांच सहित) और एक्सेसर तरीके होना चाहिए। एक कंसल्टेंट्स को एक पूर्णांक का उपयोग करके एक अवधि ऑब्जेक्ट के प्रारंभ को अनुमति देनी चाहिए, जो सेकेंड में अवधि का प्रतिनिधित्व करता है। & lt; & lt; और & gt; & Gt; ऑपरेटरों को धाराओं के माध्यम से अवधि वस्तुओं के इनपुट और आउटपुट की अनुमति देने के लिए ओवरलोड किया जाना चाहिए। एक अवधि ऑब्जेक्ट प्रारूप में \ h: mm: ss "होना चाहिए, उदाहरण के लिए, \ 1: 39: 33", \ 0: 07:07 "और \ 1: 00: 08"। इसके अलावा, ऑपरेटर, +, को ओवरलोड किया जाना चाहिए ताकि दो अवधि ऑब्जेक्ट को एक नई अवधि ऑब्जेक्ट बनाने के लिए एक साथ जोड़ दिया जा सके, और इसी तरह से एक पूर्णांक संख्या सेकंड को एक अवधि ऑब्जेक्ट में जोड़ा जा सकता है। अंत में, क्लास को अ...

c# - Setting SmartNavigation=True causes error with javascript offset.Width/offset.Height -

I am using a popular CSS hack that enables border radius in Internet Explorer 8 that is found here goes: (). This works as expected in IE8, except for any pure page, in which the post is back and SmartNavigation = true, I get a JavaScript error on the postback invalid logic line 87, it is in the html file, where the spherical The Diva is being retrieved with the offset / offsetwidth of the corner. CSS does not work properly and the layout is completely messy. I put a javascript alert in this html file so that it is considered to be a rounded corner to show the value of the offsetwidth of the container. When you first see the numerical value in the page, right click on the alert and display the CSS as it should. On posting back, the alert will show a value -1. Right click on the alert, and CSS is broken. If there is an error at the post office, invalid argument line 87 (actually 88 with warning now) and does not render CSS, why is it unable to post OffsetWide / Offset Post? I su...

sql server 2008 - sqlcmd mode from SSMS - setvar assignment to a substitution variable possible? -

I'm enabling SQLCMD mode from SQLMS 2008R2. With the code below: I see the following in the result: Hello $ (greeting) I was expecting to see: Hello Hollow Is there a scripting variable in the assignment of another scripting variable? If so, what is the syntax? Variable replacement: SETVAR does not work, because in this case it is just a token replacement; variable replacement in You can emulate such behavior: : SETAR GREETING "Hello" DECLARE @ Salutation VARCHAR (5) = $ (greeting); SELECT @salutation; Regards.

- Where Developers Learn, Share, & Build Careers

I want to add a 'featured page' button / widget for a sidebar in WordPress which will show a thumbnail of the page good By the way the custom part of the page (I'm using) I have got the task of working with the custom text widget, but this does not display the content, it only generates one from the main page of the page. Anyone knows an easy way to do this? I was hoping for non-web designers to update this type of content. You can easily get it by activating this plugin If you put your php code in the widget You can. This means that you can also insert your WP_QUERY, query_posts, or get_posts loop to get the desired page. Go to your widget page Activate Text Widget and drag it into your widget area and paste it is_pause ()): while ($ the_query-> is_pause ()): $ the_query-> The_post (); // Show thumbnails if (has_post_thumbnail ()): the_post_thumbnail (); end if; // show part-the_excerpt (); Endwhile; end if; Wp_reset_postdata (); ? & Gt;

objective c - populate UITableView -

I am struggling with a UITableView that I had worked before and somehow I broke it! This is part of a unit in the course of Paul Hegarty's The symptom is that the scene loads but it is empty I am clearly being misunderstood in some wrong way. By now I understand that the two main methods are the count of 1 section rows which are returning zero in my case, which I know is wrong! - (NSInteger) tableView: (UITableView *) tableView numberOfRowsInSection: (NSInteger) section {// incomplete legal implementation #warning. // Return the number of rows in the section NSLog (@ "top place% @", manually top); // return 100; Return [self. Top place count]; } The following method is never called because of the above because there are no rows - (UITableViewCell *) tableView :. (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath And the second is within the viewDidLoad, where I can enter your data for the console and gives everything looks fine....

Access gmail star color from IMAP -

Gmail has more stars than just a yellow star but they are not enabled by default Is it possible for any IMAP client to find all messages in Gmail with a certain star color? I have not had any success in the following: Tag is in search X-GM-RAW: "red-wire" tags searched X-GM-RAW " In: The red-star: Inbox is in "Tag Search X-GM-Raw": Red-Star: Anywhere " Yes, it should work perfectly from page: Extension of the SEARCH command: X-GM-RAW To provide access to the complete Gmail search syntax, Gmail X-GA -RA provides search feature For the stars, the notes that passed the X-GM-RA attribute when executing the SEERT or UID search command in the same way Will be explained. You can use these query parameters: : in yellow-star: in red-star: in orange-star: in green-star: blue-star: In purple-star: red Does your search occur without: : in red-red color: blue-information is: purple-question star ?

- Where Developers Learn, Share, & Build Careers

I started to go to developer.apple.com via "Core Data Tutorial for iOS" Some paragraphs use this "window-based application template" to create a new project that is not present in the xcode (4.5.1) of my code, so I used the "View Single Application" instead. The problem occurs when there is no xcdatamodeld file that should be provided by the template, and app representative properties (such as NSManned Object Contains) are discussed, as well as missing. What's the updated tutorial from 4.5.1 Apple that covers this content? Thank you very much. In fact, this tutorial needs to be updated for Xcode 4 and iOS 6. With some instructions here, the code for the updated tutorial for Xcode 4 is given:

- Where Developers Learn, Share, & Build Careers

निम्न वेब पेज पर विचार करें: & lt; html & gt; & Lt; body onscroll = "चेतावनी ('शरीर स्क्रॉल ईवेंट')" & gt; & Lt; div शैली = 'चौड़ाई: 200px; ऊंचाई: 200px; अतिप्रवाह: ऑटो' ऑनसक्रोल = 'सतर्क (' डिवेल स्क्रॉल इवेंट ') "& gt; & Lt; div शैली = 'ऊंचाई: 400px' & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; यह HTML एक स्क्रॉलबार के साथ एक div बनाता है यदि आप स्क्रॉलबार को स्थानांतरित करते हैं, तो div तत्व पर "ऑनस्क्रोल" ईवेंट ट्रिगर होता है। हालांकि, शरीर पर "ऑन्स्कलोल" का आयोजन नहीं किया जाता है। ऐसा अपेक्षित है, क्योंकि डब्ल्यू 3 सी बताता है कि तत्व परस्पर इवेंट "बबल" नहीं करते हैं। हालांकि, मैं क्लाइंट-साइड वेब फ्रेमवर्क विकसित कर रहा हूं जिसे किसी भी समय किसी भी तत्व पर एक स्क्रॉल बार पृष्ठ स्क्रॉल किया गया है यह करना आसान होगा यदि "ओन्स्कलोल" बब्डल हो, लेकिन दुर्भाग्यवश यह नहीं है। क्या एक पूर...

javascript - How to capture all scrolling events on a page without attaching an onscroll handler to every single container -

निम्न वेब पेज पर विचार करें: & lt; html & gt; & Lt; body onscroll = "चेतावनी ('शरीर स्क्रॉल ईवेंट')" & gt; & Lt; div शैली = 'चौड़ाई: 200px; ऊंचाई: 200px; अतिप्रवाह: ऑटो' ऑनसक्रोल = 'सतर्क (' डिवेल स्क्रॉल इवेंट ') "& gt; & Lt; div शैली = 'ऊंचाई: 400px' & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / body & gt; & Lt; / html & gt; यह HTML एक स्क्रॉलबार के साथ एक div बनाता है यदि आप स्क्रॉलबार को स्थानांतरित करते हैं, तो div तत्व पर "ऑनस्क्रोल" ईवेंट ट्रिगर होता है। हालांकि, शरीर पर "ऑन्स्कलोल" का आयोजन नहीं किया जाता है। ऐसा अपेक्षित है, क्योंकि डब्ल्यू 3 सी बताता है कि तत्व परस्पर इवेंट "बबल" नहीं करते हैं। हालांकि, मैं क्लाइंट-साइड वेब फ्रेमवर्क विकसित कर रहा हूं जिसे किसी भी समय किसी भी तत्व पर एक स्क्रॉल बार पृष्ठ स्क्रॉल किया गया है यह करना आसान होगा यदि "ओन्स्कलोल" बब्डल हो, लेकिन दुर्भाग्यवश यह नहीं है। क्या एक पूर...

javascript - How to move the toggle size buttom in a Fancybox -

Is it possible to move the toggle button to the fencebox in another situation? For example, toggle size buttons only at the top left corner of the picture. If you close the 'x' button with the toggle button then yes just edit css and where you want it Change where you want to display. # fancybox-close {position: absolute; Top: -15px; Correct: -15px; ...}

javascript - Getting syntax error, unexpected token with jQuery .ajax() method from YQL JSON -

After I am following one of the following jQuery and am trying to get the following error: not caught Syntax error: Unwanted token; I'm currently trying to use this code: $ ajax ({type: "GET", url: "http: // Pipes?. Yahoo.com / pipe / pipe.run _ id = 57aa32bf3481c8dca0c07afcf9b9dc29 & amp; _render = json ", async: false, beforeSend: function (x) {if (x & amp; amp; x; OverrideMimeType {x.overrideMimeType ("application / json; charset = UTF-8");}}, datatype: "json", success: function (data) {warning ("success");}}); I'm not as comfortable as JSON / JQuery / JS, but this is not really my primary area of ​​expertise;) I really appreciate any help. Is this your problem? X & amp; Amp; Amp; Instead of X.overrideMimeType x & amp; Amp; X.overrideMimeType

android - How to handle back button using view pager? -

I have two pieces of Frag A and Frag B, which are provided using View Pager. If the user is in A, then the back button is pressed (when in B), then the user should go to A rather than exit the pager. How can we get it? Backstack does not help in adding transactions. Thanks You must override onKeyDown () Method Activity . @Override Public Boolean ON KIDDOWN (Int kikod, key event event) {if (keycode == KeyEvent.KEYCODE_BACK) {myViewPager.setCurrentItem (0, true); Back true; } Else {return super.onKeyDown (keyCode, event); }} This "back" button will capture the press event and send the user to the first item in the ViewPager. There can also be used to return only if the user swiped an implementation like this: @KeyDown Public Boolean override (int kikod, key event event ) {If (keycode == KeyEvent.KEYCODE_BACK & myViewPager.getCurrentItem == 1} {myViewPager. SetCurrentItem (0, true); Back true; } Else {return super.onKeyDown (keyCode, event); }} ...

html - htaccess mobile redirect to subdirectory -

I have customized an htaccess file which was made available here, but checking what I am trying to do That the user is not already in subdirectory (rather than subdomain) in domain.co.uk/mobile and if not, then redirect him to the mobile site. However, it just falls into an infinite loop and therefore fails. Can anyone tell me what is the problem and how can I do such revittances? RewriteBase / RewriteEngine at # Check whether this noredirect query string is revoked,% {QUERY_STRING} (^ | & amp;) M = 0 (& amp; |), set the cookie, and skip ^ [$] [Or] Rivoite condom% {http: profiles}! ^ $ [Or rechristake =] rewrite% {HTTP_USER_AGENT} "acs | alf | alka | mmi | audi | aee | avan | bayoncke | bird | black | blaze | bruw | cell | ceildse | cmd" "[nc, orr ] REVEAL Conduct% {HTTP_USER_AGENT} "Dang | DOCO | Eric | HIT | INO | IPC | Jiva | Jags | KDD | KG | Lino | LG-C | LG-D | LG-G | Liege -" [NC, OR] RewriteCand% {HTTP_USER_AGENT} "Mau | Maxo | M...

Mysql timestamp data type -

I have some questions about the timestamp data type, have I covered it correctly if I used the timestamp Will I store datasets in UTC? And when I withdraw data, will it be shown in local time? If so, do I have any configuration to enable "function"? By default, TIMESTAMP stores its data in UTC, then it changes to the server's time zone The database on which the database resides. Here are several good answers to the same question:

javascript - Highcharts creates same text 3 times -

I was using Highcharts 1.7 and everything was working fine with this label which is repeated (left One, 0.025), but in the actual highchart version, which I want, the label is presented as 3 times. Not sure what is going wrong here, basically & gt; High charts 0.25 repeated the text several times. See this link for code and work examples. $ (function () {var chart; $ (document) .ready (function () {var chart = new highcharts.Chart ({'chart': {'rendereTo': 'container '' 'Bar', 'width': 500, 'height': 150}, 'Export': {'Enabled': wrong}, 'yAxis': {'max': 1400, 'title': {'Text' : '' 'Title': {'text': 'my normal barchart'}, 'plot option': {'bar': {'pointWidth': 30, 'borderwidth': 0, 'dataLabels':' 'Enabled': True, 'Distance': -10, 'Color': 'black', 'padding': 5, '...

php - sys_get_temp_dir in shared hosting environment -

Note: this may also fit in the superuser. I'm setting up to adopt PHP 5.3.10 on a shared host with Apes 2 MPM IKK and Open_Baseer, that each user can not see or change other user's files is. In apache2 vhost settings, I add the appropriate entries to restrict the user: AssignUserId USERA USERA php_admin_value open_basedir / home / USERA / www / php_admin_value upload_tmp_dir / home / USERA / www / tmp / php_admin_value session.save_path / home / USERA / www / tmp / setenv TMPDIR / home / USERA / www / tmp / now, Linux users set to use the first row apache2, next Define three lines, upload the directory and place the session passphrase in the user directory. I'll be back to the last line in a second. Now for the problem: sys_get_temp_dir () for security reasons on a Linux system should give back to the temporary directory for PHP, which is / TMP default, this directory userA Should remain in open_basedir According to the php-source of 5.3.10, the sys_get_t...

wpf - Focusing Controls Inside RichTextboxes -

संभव डुप्लिकेट: मेरे RichTextbox नियंत्रण के अंदर मेरे पास टेक्स्ट बॉक्स है (टेक्सबोक्स्ट में कुछ अभिव्यक्तियां होती हैं जो अन्यथा रिचटेक्स्टबॉक्स में भी नहीं हो सकतीं।) मुझे ऑब्जेक्ट के निकट केरेट होने पर तत्व में फ़ोकस करने / नेविगेट करने में समस्या हो रही है I कैरेट केवल ऑब्जेक्ट पर लंघन है क्या वस्तु को नोटिस करने और उस पर फ़ोकस करने के लिए कोई तरीका है (इस मामले में टेक्स्ट बॉक्स में फ़ोकस)? असल में, मुझे और अधिक विशिष्ट होना चाहिए, वास्तव में 'टेक्स्टबॉक्स' वास्तव में यूजरट्रांट है जिसमें एकाधिक Texboxes और अन्य प्रतीकों के लिए है, इसलिए यह सिर्फ एक सरल wpf 'textbox' नहीं है लेकिन मूलतः यह एक पाठ बॉक्स की तरह व्यवहार करता है। धन्यवाद। & lt; रिच टेक्स्टबॉक्स नाम = "आरटीबी" ग्रिड। राउ = "1" & gt; & Lt; ed: EnabledFlowDoc x: नाम = "efdMath" TextBlock.baselineOffset = "- 10" फ़ॉन्टफ़ैमिली = "पालटिनो लिनोटाइप" & gt; & Lt; पैराग्राफ टेक्स्टब्लॉक.बास्लीनऑफ़सेट = "10" टेक्स्ट...