Posts

Showing posts from May, 2015

- Where Developers Learn, Share, & Build Careers

I am trying to use msys.bat in ProcessBuilder in java. When I run a .bat file with my program, the following error occurred: "rxvt.exe or sh.exe binary - can not be canceled." Press any key to continue ... " Here is the code, processbilder MSIS = new processbilder ("C: / MMSIS / 1 / MMS.Bit", "/ c", "find" c: / user / dan g / Desktop / hello \ ""); Process p = Msys.start (); String line; BufferedReader r = new BufferedReader (new InputStreamReader (p.getInputStream ())); While ((line = r. radline ()) = null {}. System.out.println (line); } R. Close (); The goal is to compile some of my projects. The command is just a test for a result, not what I want to do. Thanks for the help! .bat files are their own and those called Windows Command Processors, cmd before your bat file Do not forget to load the Windows Command Processor also .exe processbilder MSIS = new process builder ("CMD.exe", "c: / mmsi...

com - PowerPoint hanging on Application.Quit call -

यहाँ मैं चल रहा हूँ कोड है: MsoTriState readOnly = MsoTriState.msoTrue; MsoTriState बिना शीर्षक = MsoTriState.msoFalse; MsoTriState विद WOW = MsoTriState.msoFalse; स्ट्रिंग filePath; // कुछ फ़ाइल पथ pptx ppt.Application एप = नल; पीपीटी। प्रस्तुतीकरण = नल; पीपीटी। प्रस्तुति प्रस्तुति = नल; ऐप = नया पीपीटी। एप्लिकेशन (); प्रस्तुतियों = ऐप। प्रस्तुतियों; प्रस्तुति = प्रस्तुतियाँ। ओपन (फ़ाइलपाठ, केवल, बिना शीर्षक वाले, वाडोव के साथ); System.Runtime.InteropServices.Marshal.ReleaseComObject (प्रस्तुति); प्रस्तुति = नल; System.Runtime.InteropServices.Marshal.ReleaseComObject (प्रस्तुतियों); प्रस्तुतीकरण = नल; app.Quit (); // हंगिंग सिस्टम यहाँ.रेंटाइम। इंटरप सर्विसेज। मिर्शल। रीलीज कॉम ऑब्जेक्ट (ऐप); एप = नल; यह एक बहुत ही बुनियादी कोड है जो एक PowerPoint अनुप्रयोग को खोलता है और फिर उसे बंद कर देता है। हालांकि, किसी कारण से, यह ऐप.क्विट () कॉल पर लटका हुआ है। इसके अलावा, मुझे पता नहीं क्यों है, लेकिन अगर मैं उस रेखा की टिप्पणी करता हूं जहां मैं कॉमरेज़ प्रस्तुति देता हूं, यह लटका...

python - Django Tastypie not Updating Resource with ManyToManyField -

Why not PUT my resource with a ManyToManyField update? curl - "frame", "favorites": ["/ API / API" - "V1 / organization / 1 /"]} 'http: // localhost: 8000 / api / v1 / Devices / 2 / I get this response: HTTP / 1.0400 Requesting Bad Date: Wed, 11 July 2012 22:21:15 GMT Server: WSGISR / 0.1 Python / 2.7.2 Content-Type: App / Jason; Charset = utf-8 {"Favorite": ["\" / api / v1 / Organizations / 1 / \ "is not a valid value for primary key."]} Resources are: class organization resources (ModelResource): parent_org = fields.ForeignKey ('self', 'parent_org', null = true, absolute = true, empty = true) class meta: permissions_mole = ['Go',] Authentication = APIAuthentication () field = ['name', 'org_type', 'parent_org'] filtering = {'name': ALL, 'org_type': ALL, 'parent_org': ALL_WITH_RELATIONS,} command = '' Name ',] q...

javascript - jqplot horizontal bars issue -

I am trying to set a horizontal bar graph using jqplot: Var plot1 = $ .jqplot ('graph', [gData], {seriesDefaults: {renderer: $ .jqplot.BarRenderer, renderer options: {bar direction: 'horizontal'}}, axis: {yaxis: {renderer: $ .jqplot rangex randerer, tick: gtixt}}}); This code works well with vertical bars, such as: var plot1 = $ .jqplot ('graph', [gData], { SeriesDefaults: {Renderer: $ .jqplot.BarRenderer}, axes: {xaxis: {renderer: $ .jqplot.CategoryAxisRenderer, ticks: gTicks}}}); But when I go to make it horizontal, then suddenly the lines do not make lines with ticks anymore. For example, for some ticks, there may be two or more overlapping bars and for some, nobody can be. Finally, there is an additional 'undefined' tick, which often overlaps repeatedly. Both jData and GTI are javascript arrays. Any thoughts? Edit: The undefined category is actually my own creation, but the problem remains unchanged. The reason for this doe...

scroll - Javascript scrolling and moving positions -

Window object in JS is a scrollable () method, which takes two arguments, what does those arguments represent? In this book where I am learning, "I want to score the number of pixels, but what does it mean to mean it means that when I pull the scroll bar on the right side, then the content will move beyond 10 pixels or If I have 10 pixels of material that I have specified or taken by the scroll down button or by whom? In addition, I can not try to understand () method and To understand the difference between the way of the trick as if they do the same thing, but if this is the case then what should be done to do two working points? The parameters in the pixels are the top and left coordinates. Scroll down and scroll-B exceptions are with the exception. Works in, snakes compared to the current working period Acting applies. The same rule applies to the implementation of the rule.

ofstream - overwrite a text in a file using c++ -

मुझे निम्न कोड में एक समस्या है: fstream s ("tst.txt ", Fstream :: बाइनरी); S.seekp (5, एफस्ट्रीम :: बेख); S.write ("परीक्षण", 7); इसे फ़ाइल में पहले पांच वर्ण रखना चाहिए, जैसा कि यह है, लेकिन ऐसा नहीं है! यह पूरे पुराने डेटा को त्यागने के लिए, मुझे पुराने डेटा को रखना होगा और फ़ाइल डेटा का सिर्फ एक ब्लॉक अधिलेखित करना होगा, और यह किसी भी एक बाइनरी मोड में होना चाहिए? अग्रिम में धन्यवाद। इसे आज़माएं: fstream s (" Tst.txt ", fstream :: binary | fstream :: in | fstream :: out); S.seekp (5, std :: fstream :: beg); S.write ("परीक्षण", 7); एक ओपनमोडा ध्वज निर्दिष्ट करके, आप अपने एफस्ट्र्रीम कन्स्ट्रक्टर कॉल में डिफ़ॉल्ट ओपनमोलोड को ओवरराइड कर रहे हैं।

r - Output of quantile to a data frame -

This is a fairly basic question, but has not seen good answers on different forums. Say I have a simple vector x = runif (10,1,4)> X [1] 3.292108 1.388526 2.774949 3.005725 3.904919 1.322561 2.660862 1.400743 [9] 2.252095 3.567267 & gt; Next I calculate some quantities, & gt; Z = Quantity (X, C (0.1.0.8)) gt; Z 10% 80% 1.381929 3.347140 & gt; I need this output as the data output, so I tried the following & gt; Y = data.frame (id = name (z), value = z) & gt; Y ID value 10% 10% 1.381929 80% 80% 3.347140 I think the "%" column has been repeated. Also when I try & gt; Y $ id [1] [1] 10% level: 10% 80% While I expect it to be just "10%" or 0.1. Any help appreciated. The names are only possibilities y will work so wrapping it in a function that is data .frame quantile_df

javascript - Element (background-image) opacity, but no border opacity -

I know how to do it, how to do it, but I have to do without the element Ambiguity, backend-image ambiguity I do not want to modify the image in the Image Editor, so I am looking for the ambiguity set by the CSS. possible? In my CSS below, I want to modify the "disabled" status with a sharp no-opacity limit. Please advice ... Examples of use: Button style: div.button, div.button: hover {background: none; Border: 2px solid # 6C7B8B; Range radius: 8px; Explicit: none; Color: Transparent; Cursor: indicator; Display: Inline-block; Filter: Alpha (Opacity = 100); -M-filter: "Progress: DXimage Transforms. Microsoft. Elfa (Opacity = 100)"; Float: None; Height: 24px; Margin-down: 0 pixels; Margin-left: 3px; Margin-right: 0 pixels; Margin-top: 7px; Opacity: 1; -Moostness: 1; Profile: None; Hidden flurry; Padding: None; Vertical-alignment: top; Width: 24px; } Click the effect: div.button: active {left: 1px ; Status: Relative; Top: 1px; } Add...

node.js - Error installing node-weak on Windows7 -

I can not load nodes weak on Windows7. I did not take any advantage of Python 2.7, 2.5, 2.3. It seems (with the error below), that I need to use the version of Python 2, but does not seem to help in the changing versions. Any help is appreciated. C: \ Project 1 \ node_modules \ weak> node "C: \ Program Files (x 86) \ nodejs \ node_modules \ npm \ bin \ node-gyp-bin \\ .. \ .. \ node_modules \ node-gyp \ bin \ node-gyp.js "gyp ERR rebuild! Rebuild Error Error: Python is executable on executable "c: \ Python25 \ python.exe" 3, which is not supported. GEP ERR! FailPython3 (C: \ Program Files (x86) \ nodejs \ node_mo dules \ npm \ node_modules \ node-gyp \ lib \ configure.js: 90: Reconstruction error: Gyp ERR at 14! C: \ Program Files (x86) \ nodejs \ node_modules \ npm \ nod e_modules \ node-gyp \ lib reconstruction error on \ configure.js: 79: 9 gyp rebuild error ERR! ChildProcess.exithandler (child_process.js: 534: 7) gyp ERR! ChildProcess.EventEmitter. rec...

iphone - iOS: How to display a small view on top of main view? -

I'm new here, do not be too hard on me :) Learning iOS development and my app Is trying to display a small scene to enter some data, which is using the storyboard. I tried to add it as a subview but I can not take it from the top left corner or make the background to fade. Thanks Think of a UIViewController as your screen. Your screen can show several different views at once, but they are all part of the view of the UIVIUUT-Controller. Instead, present a new UIViewController (i.e. screen), you want to do something like this: // its Use an XIB for, not a storyboard, UIView * newView = [[NSBundle mainBundle] loadNib nominated: @ "adadata" owner: self choice: zero] lastObject]; [Self.view addSubview: newView]; I suggest reading these two guides from the applet until you understand the difference between a UIView and a UIViewController:

- Where Developers Learn, Share, & Build Careers

I have created opencv on Ubuntu 12.04 64bit. If I issue the following command I can link opencv libraries have: g ++ `pkg-config opencv - cflags` my_code.cpp -o my_code` pkg-config opencv - -libs` However if I issue the following command: GCC-GOO-2-Y-valve -Vino-unused -Vino -Multi-O main main. -lcx -lcv -lhighgui -lcvaux I have: / usr / bin / ld: can not find -lcxcore / usr / bin / ld : -lcv / usr / bin / ld: can not find: -lighgui / usr / bin / ld: can not find -lcvaux collect2: ld 1 exit status problem Problems were released in the shoot: pkg-config --libs opencv and found: / usr / local / lib / Libopenkw_kalib3dkso /usr/lokl/lib/libopenkw_contribkso /usr/lokl/lib/libopenkw_korkso /usr/lokl/lib/libopenkw_fecchars2dkso /usr/lokl/lib/libopenkw_flannkso / sterile / local / lib / libopencv_gpu.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_legacy.so / usr / local / lib / l Ibopencv_ml.so / u sr / local / ...

rgb - ImageMagick Reduces Colorspace to Gray -

I convert RGB and CMYK TIFF images to RGB JPEG Convert a .tif - If there is only gray pixels in TIFF image, then the colorful location of JPEG is gray, not RGB. How can I force image magic? Always use RGB? Try this: Convert a.tif -colorspace rgb However, I have to ask: How do you decide your decision 'The resultant JPEG's color palette is gray, not RGB?' ?!? The image can see the status of the colors used by the magic tool identity if you have convert , then your Will also pass identity : identify-format "% [colorspace] & lt; ==% F \ n" * .png * .jpeg * .pdf * .tif Example output: sRGB & lt; == Full-processed-origin .pgg gray & lt; == Tiffin 4 CIMYK & lt; == CMKPDF CMYK & lt; == Photoshop.jpg

daemon - does bash -c work like nohup? -

redhat में एक पुरानी इंटिस्क्रिप्ट के साथ काम करते समय, मैं डेमन --यूज़र $ USER --पैडफाइल $ PIDFILE "सीएमडी & gt; & gt; /var/log/cmd.log 2 & gt; और 1 & amp;" ऐसा लगता है कि इसमें संदेह होना चाहिए यह नोहूप का उपयोग नहीं करता है हालांकि, कार्यक्रम सही ढंग से काम करता है, और नियंत्रित टर्मिनल से बाहर निकल जाने पर भी चलती रहती है। आगे की जांच करते हुए मुझे पता चला कि जैसे- bash -c 'सो 1000 और amp;' ऐसा लगता है कि अगर टर्मिनल जिसे इसे लागू किया जाता है तो बाहर निकल जाता है (जो बिना किसी प्रकार के संभव होनी चाहिए)। मैंने इस व्यवहार को नवीनतम उबुन्टू के साथ सत्यापित किया है। तो मेरा सवाल है, क्या यह व्यवहार अच्छी तरह से जाना जाता है? यही है, क्या मैं इसे अपने init स्क्रिप्ट में उपयोग कर सकते हैं, बजाय nohup? या यह बाश में एक बग है? यह मेरी जिज्ञासा को खारिज करती है: क्या SIGHUP व्यवहार करता है जैसे कि ये होता है? पहला संकेत, shopt : huponexit पर बाश मैन पेज से आता है, यदि एक इंटरेक्टिव पर बैश सभी नौकरियों को SIGHUP भेज देगी लॉगिन शेल निक...

Objective C - How to put a close button in window? -

I'm having trouble with putting a close button in my window in Objective-C, I've created a button, but I do not know What method do I need to stop the window, I have done this: - (zero) awakeFromNib {// Create a button NSRect frame = NSMakeRect (350, 10, 100, 50); NSButton * btn = [[NSButton alloc] initWithFrame: frame]; [BTN SETBUTTON TYPE: NSMantrypush Inbutton]; [BTN set bezel style: NSRattbeizle style]; [BTN SETITAL: @ "OFF"]; [BTN Set Target: Self]; [BTN set action: @sillector (close window)]; [Adsview view: BTN] See; } - {zero} closeWindow {} I do not know what to put in closed window method You can close the current window by using something along these lines: NSWindow * window = [[NSAPC sharing application] key [Window] ; [close window]; However, it does not actively emulate a user to close a window, because it does not call representative methods, nor exposes a close button You may want to use it instead: NSWindow * window = [[NSAPCirm...

- Where Developers Learn, Share, & Build Careers

Image
The DriveInfo class sometimes displays a windows message popup when using "itemprop =" text "> after Insert a disk in code The fact that I am working with is quite standard: var driveInfos = DriveInfo.GetDrives (); Foreach (DriveInfo DriveInfo in driveInfO) {try (driveInfo.IsReady & amp; (DriveInfo.DriveType == DriveType.Network || driveInfo.DriveType == DriveType.Removable)} {var driveText = String.Format ( "{0} ({1})", driveInfo.VolumeLabel, driveInfo.Name); had a glance on the web After it came to know that this is an unusual error, but one is the problem of environmental issues on the machine (people are reporting this as happening When things go like chrome) because of A lot of people have fixed this by clearing old usb references. The error does not really stop the program from working normally in a different way than displaying this message. (And does not get stuck in the catch block) It is a WPF application that is going to be ...

ruby - Sinatra - Setting Cache-Control Headers via config.ru -

I am currently running an octopus site (jacail-based) on the cedar stack of Heroku. The code resides here: I want to apply a cache-control header based on the selected file type: . Html files public, max-age = 3600 .css | .js | .png Get the value of .ico (etc) public, maximum-age = 604800 - Alternatively, I will call this rule as / stylesheets, '/ javascripts',' / Imgs' directory to do anything. set both : static_cache_control, [: public ,: max_age => 3600] and just vanilla cash_transdown: public, max_age = & gt; 3600 Details with no luck. I have managed to set public, maximum-age = 3600 on articles (such as / 2012 / lazy-sunday / ) But have not been able to get the header to apply to CSS / JS (like /stylesheets/screen.css ) My Updated ): 'Bundler / Setup' is required 'sinatra / base' # Project Root Directory $ root = :: File Dima (__ file __) class Sinatra stratuset server & lt; Sinatra :: Base Mill (/....

vb.net - Split Container Anchor issues in VS2010 -

I had several projects where UI designers are being "corrupted". It is always related to different containers, DataGrid views, and serves DGV inside the split container. It appears that DGV anchor in any way de-syncs and gets bigger than the DGV panel, which is considered to anchor inside it. This reduces one part of DGV and no scrollbar is available to see the rest. Has anyone met this, and hopefully it has also been found to be correct? The solution to get rid of the container was to remind me of other projects related to designers. That is, there was also a separate container in the designer. I got some bug reports about this on the Microsoft website and they are flung under the rug. I am feeling that this is a known problem which is unlikely to be fixed.

c# - read permission denied using NTFS when I denied write permission -

Using the code given below did not ask for a user permission to write, even if I checked the Security tab But the permission to write only has been rejected, but I can not be able to use the 'folder to read. ADSOCITY objADsSec; Securitydesktop objSecDes; AccessControlList objDAcl; AccessControlEntry objAce1; AccessControlEntry objAce2; Object objSIdHex; ADSID OGSID; ObjADsSec = new ADSSecurityClass (); ObjSecDes = (Security Descriptor) (objADsSec.GetSecurityDescriptor ("FILE: //" + vPath)); ObjDAcl = (AccessControlList) objSecDes.DiscretionaryAcl; ObjSId = new ADsSIDClass (); ObjSId.SetAs ((int) ADSSECURITYLib.ADS_SID_FORMAT.ADS_SID_SAM, Username.Testring ()); ObjSIdex = objSId.GetAs ((int) ADSSECURITYLib.ADS_SID_FORMAT.ADS_SID_SDDL); ObjAce2 = New AccessControlEntryClass (); ObjAce2.Trustee = (objSIdHex) .restring (); ObjAce2.AccessMask = (int) ActiveDs.ADS_RIGHTS_ENUM.ADS_RIGHT_GENERIC_WRITE; ObjAce2.AceType = (int) ActiveDs.ADS_ACETYPE_ENUM.ADS_ACETYPE_ACCESS_DE...

osx - Profiling c++ on mac os x -

I'm trying to profile some C ++ code on my Mac (OS X Lion) and I do not know Have found something useful that I am looking for a profiler who will tell me how the function is picking up my CPU time (similar to a matlab profiler). Whatever I have tried here gprof it is on my linux machine, but it only gives me empty output on my mac (apparently a known problem ) Equipment I can not understand how to profile anything in my compiled binary for my life. And I can not find any useful tutorials. (Shark detected by other searches, which is no longer available and Valgrind is for memory). Really appreciate the help! is the tool tool used. A complete description of the tool is outside the scope of this answer, but it is a quick introductory guide: Open Instruments. 1 "Time Profiler" template. Choose your app in the "Target" dropdown menu 2 Press the red circle ("Record") If applicable, do some things in your application that ...

javascript - Auto Scroll is not working in viewport in Ext JS -

I have permission to scroll through the port items I tried the code below but it is not working. var viewport = new extension. View ({Layout: 'Column', Apply: 'divPanel', Item: [{title: 'title', collapsible: true, AutoScoll: true, columnWidth: .57, item: [grid], width: 300} {ColumnWidth: .01,}, {columnWidth: .42, autoScoll: true, openable: true, items: [panel], width: 250}]}); Any help should be appreciated .. Thank you To make a scroll in sequence, you have to set one height on the components inside the scene.

ios - Show block of text that contains different font sizes and styles -

I am working on an iPhone app and wondering how I would like a block of text with sub-strings Or a different size programmatically, it seems that this should probably be, but I find the right thing to find or search for an example. Your only option is to use UIWebView . [NSString stringWithFormat:]; Use to make your HTML dynamic and then you can do [myWebView loaded HTML string: previously created HTMLString baseURL: nil]; Hope this helps. Cheers!

- Where Developers Learn, Share, & Build Careers

I run SecureSocial on a 1.2.x installation (port: 9000). Apache access to the application is through Apache httpd: 80, which will then forward the requests. For SecureSocial, the URL in the request is now localhost: 9000 (see securesocial.provider .Auth2Provider.doAuth (map & lt; string, object & gt;): 111 ) , The authentication call will fail. I search for a clever solution to this problem which is not included "post-text" itemprop = " Conf , parameter XForwardedSupport in the All , or list of allowed proxies.

- Where Developers Learn, Share, & Build Careers

I have a problem in implementing this argument in my project using Im ServiceLoader and I do not know or This is also possible, but I want to add JARs to some known directory for dynamic app so that the app can load them when it starts. What I have achieved is that I know how to make a jar (with meta-INF / services) so that I will add more and more providers and classes (implementation) to this jar. Jar is included in the squared path like ordinary library, so the app knows about it. What I want to achieve: I do not want to file a jar, but I want to extend the app by adding more jar like plugins to providers (services), but I do not know how to Thanks for the help! You just need (a) URLClassLoader which is created with all the URLs of those directories Please call JR files, and (B) calls.

- Where Developers Learn, Share, & Build Careers

एनरेटेडफ़ाइल या GetFiles या GetDirectories जैसे .NET निर्देशिका वर्ग विधियों का उपयोग करते समय मुझे लगता है कि वे एक अप्रबंधित हैंडल को पकड़ते हैं यह संभाल कैसे जारी है? क्या वे IDispose उपयोग कर रहे हैं? मेरा मतलब है कि संभाल रिसाव की संभावना है? नहीं, निर्देशिका नहीं करता है 'कोड' को लागू नहीं किया जा सकता है, और वास्तव में इसकी सभी विधियां स्थिर हैं। अप्रबंधित हैंडल को जारी करना प्रत्येक पद्धति के भीतर होना चाहिए - अगर आप वास्तव में अधिक देखना चाहते हैं, तो इसे परावर्तक की तरह देखें। वास्तव में, यदि आप ऐसा करते हैं, तो आपको एक आंतरिक फ़ाइल सिस्टीमअन्यमेरेबल इटरेटर & lt; T & gt; नामक वर्ग, जो IDisposable को कार्यान्वित करता है और जिसका डिस्पोज़ विधि संभालता है।

- Where Developers Learn, Share, & Build Careers

itemprop = "text"> I am trying to use WinHttpGetProxyForUrl where specified by the PAC file WINHTTP_AUTOPROXY_OPTIONS HTTP Basic Authentication is required to access lpszAutoConfigUrl . Regularly do the authentication dialog to popup or to supply username and password to use for proxy? Automated credential dialog handling is only supported in. In WinHTTP you have to provide a user way of obtaining the user name and password and pass it to WinHttpSetCredentials or similar tasks. I will check for the return value of WinHttpGetProxyForUrl to ERROR_WINHTTP_LOGIN_FAILURE and then demand the user's credentials. At any point in which you can try WinHTTP to pass those credentials: WinHttpSetOption with WINHTTP_OPTION_USERNAME And Use WINHTTP_OPTION_PASSWORD to set a username and password and remember WinHttpGetProxyForUrl or WinHttpGetProxyForUrl And supply the lpszAutoConfigUrl parameter with a URL containing credentials (i.e. http: // ...

- Where Developers Learn, Share, & Build Careers

I am creating an application that will take large images from the SD card and then make them black and white and Will save in the card. I can not read large images directly. So need to use a stream. Can someone provide me a solution? PS: I tried to do a lot to find an answer for this issue, but it has not been able. RandomAccessFile to access the file Reading / Write mode: RandomAccessFile file = new RandomAccessFile ("yourimage", "rw"); You can read a section of data compared to , modify the data buffer for black and whith only the color of the outstanding pixel, go back to the offset where you do one Start reading and with black and pixels. Edit: OK, in fact, I do not think that reading is a solution to the file because Android does not allow you to get raw bytes of your image. You can use a small part of your image to read: Bitmap regeon decoder decoder = bitmap region decoder.New instance (Mystream, Falls); Bitmap bitmapril = decoder Dec...

.net - Regex to replace space with char -

इनपुट: टेस्ट 1 | टेस्ट 2 | टेस्ट 3 | टेस्ट 4 यहाँ चार संहिता है | एक सीमांकक की तरह है। क्या कोई मुझे रेगुलर एक्सप्रेशन या स्ट्रिंग को इस तरह से प्राप्त करने का कोई आसान तरीका दे सकता है। और इससे टेस्ट और 3 के बीच की जगह को प्रभावित नहीं करना चाहिए। आउटपुट होना चाहिए टेस्ट 1 | टेस्ट 2 | टेस्ट 3 | टेस्ट 4 वहाँ सिर्फ एक स्थान नहीं है। रिक्त स्थान एक से अधिक हो सकता है। स्ट्रिंग टेक्स्ट = "टेस्ट 1 | टेस्ट 2 | टेस्ट 3 | टेस्ट 4 "; टेक्स्ट = टेक्स्ट। बदलें ("|", "|")। बदलें ("|", "|")। बदलें ("|", "|");

javascript - window.print() works on urls except one -

इन लिंक (iframe src) में अंतर क्या है? Window.print () var myWindow = window.open ('', '', 'fullscreen = yes') पर काम करता है; MyWindow.document.write ("& lt; iframe src = \" http: //stackoverflow.com/questions/11447382/window-print-does-not-take-the-current-url \ "चौड़ाई = \" 100% \ "ऊंचाई = \" 100% \ "& gt; & lt; / iframe & gt;"); MyWindow.document.write ('& lt; iframe src = "' + url + '" width = "100%" height = "100%" & gt; & lt; / iframe & gt;'); myWindow.document.close (); myWindow.focus (); myWindow.print (); लेकिन myWindow.document.write ("& lt; iframe src = \" http: // localhost: 8080 / hiringsteps / docs पर कार्य नहीं करता है / केनथ _1340800082258 / केनथ _्रेस्यूम_1340800082258.pdf \ "width = \" 100% \ "height = \" 100% \ "& gt; & lt; / iframe & gt;); फ़ाइल पीडीएफ फाइल...

javascript - Check for boolean values and convert them to numbers in an object -

I've found an object whose values ​​are true and false some keys for. I have to find out which key has got boolean values ​​and they can be converted to 1 and 0, respectively, how do I do this? Any help or advice is highly appreciated. 123, "accountid": 456, "name": "Test in progress", "number": [{' SetNumber ': true}, {' setNumber ': false},], "settings": {"playback": wrong, "attached file": true,}} You can number or + operator . Change a Boolean (number) using ; // = & gt; 1 number (wrong); // = & gt; 0 + (true); // = & gt; 1 + (wrong); // = & gt; 0 [ Edit ) based on the comment You can use typeof to evaluate the value for a boolean Are: somebool = true, sombool_isBoolean = /^boolean$/i.test (types of somebool) // = & gt; Truth, nobool = 'true', nobool_isBoolean = / ^ Boolean $ / i examination (nobool of type) // = & gt; wrong; So you...

java - NullPointerException trying to load a file -

परिदृश्य निम्न है: jdeveloper के साथ एक jsp अनुप्रयोग विकसित करना ओरेकल वेबलॉगिक में तैनाती सभी फाइलें एक ही प्रोजेक्ट में हैं स्रोत फाइलें src फ़ोल्डर के अंदर के अंदर हैं अंदर संसाधन फ़ोल्डर दो फ़ाइलें हैं: menu.json और TestWS.properties इसलिए , मैंने एक जावा वर्ग बनाया है जिसे menu.json पढ़ना चाहिए और इसकी संरचना के आधार पर एक मेनू (html) में वापस करना होगा। जब कक्षा के अंदर, मैं ऐसा करता हूं InputStream I = Thread.currentThread ()। GetContextClassLoader () getResourceAsStream ( "संसाधन / menu.json"); BufferedReader r = नया BufferedReader (नया InputStreamReader (i)); InputStreamReader कंस्ट्रक्टर एक NullPointerException फेंकता है, मुझे लगता है क्योंकि यह फ़ाइल नहीं मिल सकता है। मजेदार बात यह है, अगर मैं TestWS.properties को लोड करने की कोशिश करता हूं, तो इसे ठीक से लोड किया जाता है। मैंने परियोजना के गुणों की जाँच करने की कोशिश की, मैन्युअल रूप से परियोजना के अंतर्गत दोनों फाइलें जोड़ दी स्रोत पथ - & gt; संसाधन , .json को...

How to get attibute and values in xml parsing in android? -

मेरे पास एक XML फ़ाइल है जिसमें & lt; question_choices & gt; & Lt; प्रश्न आईडी = "499" & gt; आप खराब सनबर्न के साथ एक चिकन को क्या कहते हैं & lt; / प्रश्न & gt; & Lt; choices1 id = "2231" & gt; बर्ने हुए चिकन & lt; / options1 & gt; & Lt; choices2 id = "2230" & gt; फ्राइड चिकन & lt; / options2 & gt; & Lt; choices3 id = "2232" & gt; मृत चिकन & lt; / options3 & gt; & Lt; choices_answer & gt; फ्राइड चिकन & lt; / options_answer & gt; & Lt; / question_choices & gt; मुझे पार्सिंग के दौरान आईडी और वैल्यू दोनों मिलना है। इसके अलावा मैंने इन विकल्पों को 3 अलग-अलग बटनों में सेट किया है। इसलिए जब मैं इन विकल्पों पर क्लिक करता हूं, तो मुझे मूल्य और संबंधित आईडी भी बचाया जाना है। मैं getAttributes () का उपयोग करने की कोशिश की, लेकिन मुझे पता नहीं है कि कैसे और कैसे उपयोग करें। इसलिए यह सफल नहीं था। अंतिम XMLParser parser = new XMLParser (); स्ट्रिंग xml...

javascript - tricky multiple replace in a string -

मेरी स्ट्रिंग कुछ ऐसा है var query = "@id" = 4 OR @ आईडी2 & lt; 6 और @ id3 & gt; = 5 और @name = foo " अब मैं इस स्ट्रिंग के साथ क्या करना चाहूँगा हर" समानता "परीक्षा को उलट करना है प्रतिलिपि '> =' द्वारा '& lt;' , '& Lt;' '' = 'और' = 'द्वारा'! = 'तक! परिणाम मुझे चाहिए: var reverseQuery = "@id & lt; 4 OR @ id2 & gt; = 6 और @ आईडी3 & lt; 5 और @नाम! = Foo " हम इसका उपयोग नहीं कर सकते हैं: रिवर्स क्वैरीई = क्वेरी। स्थान (/ & gt; = / g," & lt; ")। क्योंकि इसका परिणाम @id> = 4 OR @ id2 होगा & Gt; = 6 और @ आईडी3 & gt; = 5 और @नाम! = Foo ठीक है? तो यह कैसे अच्छी तरह से करना है? धन्यवाद, एक ही स्थान का उपयोग करें कॉलबैक फ़ंक्शन जो प्रतिस्थापन निर्धारित करता है। query = query.replace (/ (& lt; =? | & Gt; = | | = | & lt; & gt; |! = =) / जी, फ़ंक्शन (एम) {स्विच (एम) {केस 'और लेफ्टिनेंट;: वापसी...

Javascript rotating banner - Initial BG Colour change -

I am currently using the dynamic drive java script code for rotating banners on one of our company websites. The problem I am facing is that the initial background color for the banner is pure black when loading in the page, and I have difficulty finding out where I can change it. For example the website: You will see that the initial BG is black, white is going to be - which does not look very good. Comes from javascript: I have not done a lot apart from the speed of the banner and feed, does anyone point me in the right direction how the initial loading background color Please fix / replace? Or how to remove any BG on it thanks, nesson in Try searching fadeslideshow.js gallerylayer and you will see this line: setting. $ GalleryRayers = $ (' Here you will see the color black, change it accordingly.

boolean operations - 7-bit two's complement -

Is this an easy way to find out? What is the lowest (most negative) number that can be presented by two complementes of 7-bit? Show how to convert the number into two complementary presentations. The least number is -2 ^ 6 . To find out the negative number of a negative number in the supplement of 2 (aka its full value) flip the bits and add one then the (- 1) * 1000001 = 0111110 + 1 = 0111111 = 1000000 - 1 = 2 ^ 6-1 . As you can see that there is less than 1000001 and it is less than that: 1000000 . We are getting this full value: (- 1) * (100000) = (-1) * (100001-1) = (-1) * (100001) + 1 = (2 ^ 6-1) +1 = 2 ^ 6 .

css - Make all images sepia svg code not working? -

Therefore, I wanted to create all the images with the Sepia effect, though I use the code for grayscale in SVG, When it changes in sepia 't work ... it is grayscale: an IMG {filter: url ("data: image / svg + xml; utf 8, & lt; svg xmlns = 'Http: // www. W3.org/2000/svg'><filter id =' grayscale '& gt; & lt; feColorMatrix type =' matrix 'value =' 0.3333 0.3333 0.3333 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 1 0 '/> & lt; / svg & gt; #grayscale "); } and it is Sepia that does not work: img {filter: url ("data: / svg + xml; utf8, & lt; svg xmlns = 'http: //www.w3.org/2000/svg'><filter id = "sepia"> gt; & lt; / filter & gt; & lt; / svg & gt; #sepia "); } Can anyone tell me what is wrong with sepia codes? And since I am asking that to play sepia and grayscale and play with the opposition such as the web-kit, I'll call it -web...

Django get_profile() method not working on extended User model -

मेरे पास user_profile नाम की ऐप में ऐसा मॉडल है: Django.contrib.auth.models से django.db आयात मॉडल से आयात करें उपयोगकर्ता वर्ग UserProfile (models.Model): user = models.OneToOneField (उपयोगकर्ता) def __unicode __ (स्वयं): return self.user.username और मेरी सेटिंग में: AUTH_PROFILE_MODULE = 'user_profile.UserProfile' लेकिन अगर मैं कोशिश करता हूं: u = UserProfile.objects.get (pk = 1) p = u.get_profile () मुझे निम्न त्रुटि मिलती है: एट्रिब्यूट एंटर: 'UserProfile' ऑब्जेक्ट में 'get_profile' का कोई विशेषता नहीं है I मुझे यहाँ क्या याद आ रही है? किसी भी मदद की बहुत सराहना की जाएगी। एर, आप एक UserProfile का उपयोगकर्ता प्रोफ़ाइल प्राप्त करने का प्रयास कर रहे हैं। मुझे उम्मीद है आप एक उपयोगकर्ता प्राप्त करने का मतलब है, फिर उस पर get_profile () को कॉल करें।

- Where Developers Learn, Share, & Build Careers

Let's consider a bidirectional array, as declared as the following: #include & lt; Stdbool j & gt; Bull array [N1] [N2]; I must know that there is a true value in each row of this array in the same position. For example, the following is correct: {{1, 0, 1, 0}, {1, 0,}, {0, 0, 1, While this is false: {{1, 0, 1, 0}, {1, 0, 1, 0} {0, 0, 1,}} I have tried to do this: Fixed UITx_T hash (Controll ball * T, size_ty n ) {Uintmax_t retv = 0U; (Size_ty i = 0; i & lt; n; ++ i) if (t [i] == true) retv | = 1 & lt; & Lt; I; Retv retire; } Static int_valid {bool n} {return n! = 0 & amp; Amp; (N and (n -1)) == 0; } Bull check (ball t [n 1] [n 2]) {uintmax_t thaas [n 1]; For (size_t i = 0; i But this is only for N1 and lt; = Sizeof (uintmax_t) * CHAR_BIT works with . Do you know the best way to solve it? Why not just create another array that is the size of N2 (number of columns), Set it all to true , then with and each row in the end, ...

c# - Access a Razor View from another project -

I have a MVC project that is using the razor scene for my website. One of my projects, when I call it, Project 1 is full and used. I want to access a scene from Project 2 in Project 2 so that I do not have to keep both screens. They are both in the same solution. I can not change Project 1 because it is already in use by our customers, I saw the razor single file generator, but it is quite hard for 1 screen and I can not change Project 1 Which is already in use. How do I reference the scene from Project 1 into my project 2? Thank you! You can insert your ideas from project 2 to DLL and reference DLL in project 1 Are there. . Follow a compilation to be compiled in DLL.

- Where Developers Learn, Share, & Build Careers

I need an algorithm which can fill an array (size n) from the same value, in log (n) time, in parallel. This means that for naive solution (i = 0; i & lt; = n-1; i ++) will be t [i] = 10 is not enough Because it takes o (n) time, I need something that can O (log (n)) take . It is very important that I mentioned that it has to be done in PARALLEL. I was thinking about a dependency, but I can not figure it out. There are several ways to confuse yourself as a simple loop for (i = 0; i & lt; = (SIZE / 2); i ++) {arr [i] = 10; Arrival [Size- (i +1)] = 10; } which you consider to be O (N / 2) but in fact you have to type the value in the code n bar, whatever you take, you will eventually The assignment operation will execute n times.

jquery ajax sending json to php error -

ठीक है, यहां मेरा अजाक्स अनुरोध है: $ ("# scoreForm") Var (); var gameScore = parseInt ($ ('# gameScore')। पाठ ()); var परिणाम = {सबमिट करें} 'परिणाम': '{निट ":"' + रिक-नाम + '"," स्कोर ":' + गेमस्कोर + '}'}; // var परिणाम = {" निक ": निक नाम," स्कोर ": gameScore}; $ अजाक्स ({url: "http: // localhost: 8888 / snake / addScore.php"), प्रकार: "पोस्ट", डेटा: परिणाम, // डेटा प्रकार: "jsonp", सफलता: फ़ंक्शन (डेटा) {चेतावनी ("सिकर ");}, त्रुटि: फ़ंक्शन (जेकएक्सएचआर, टेक्स्टस्टैटस, एरर ट्राउवर) {चेतावनी (" बक्टा "+ पाठस्टैटस); //console.log (डेटा);}}); वापसी वापस;}); और मेरे php प्रक्रिया कोड: $ json_decoded = json_decode ($ _ POST ['परिणाम'], सच है); // $ निक = $ _GET ['निक']; // $ स्कोर = $ _GET ['स्कोर']; $ Mysqli = नया mysqli ("स्थानीयहोस्ट", "रूट", "रूट", "सांप", 8889); ...

java - How to copy directory via scp within gradle task? -

What is a clean and elegant way to copy a bunch of files via SQL with SQL? The way I am currently looking at is: Use of Apache Wagon, as described here: Exec Function Implementing the scope through the command line Is there a better (more pronounced) way to contact it? Use jar files for SCP files on one EC2 server from one of my projects that are local files Part of the project, I forget where I got it. Maybe there is a more concise way to do all this, but I like being very clear in my creation script. configuration {sshAntTask} dependency {sshAntTask fileTree (dir: 'buildSrc / lib', SshAntTask fileTree (dir: 'buildSrc / lib', includes: 'ant-jsch * .jar' }} Ant.taskdef (name: 'scp', classname: 'org.apache.tools include: .at.taskdefs.optional.ssh.Scp', classpath: configurations.sshAntTask.asPath) upload jobs dbServer () {doLast {Ant.scp (file: '...', todir: '...', keyfile: '...')}}

How to isolate Eclipse workspace from git local repository? -

I installed eGet on Juno and created Java project in the works area of ​​Eclipse. Then I shared that project with the guit. Then when I check the properties of the project, I came to know that this project has been shifted from its original workspace to the Git local store. When I make some changes in the Eclipse editor, the change is done without a local repository. How to separate the Eclipse workspace from the GIT local repository? (Well, my eclipse workspace is ~ / document / workspace, my GIT is the local store ~ ​​/ git / myrepository1.) The workspace is still in its original location outside of editing, it is such projects that have been moved to git-controlled directories. Normally the projects are created in the Eclipse workspace folder but you can override that default. If you really want to separate the change from GIT, then you have to break GIT's control of the project, but you can still have the misfortune to move the project contents back into your wor...

php - codeigniter after submission if refresh submit again -

I think that's simple but I'm new to codeigniter, so please help. I have a form page that takes data and when the store is deposited then data in the database. Then I tried two ways to redirect back to the main page: ago: $ this-> Load-> Scene ('home'); Second: Redirect ('/ login / form /', 'refresh'); They successfully redirect or load the home page, but the URL is still / property / new_property which is the view for data input. When I refresh the home page with the above mentioned URL, the data is re-submitted so many records in the database. How can I redirect to home and make url property / home? Thanks $ this-> Session-> Set_flashdata ('message', 'new post has been added'); Redirect ('somefunction', 'refresh') After successful saving, you will change your URL to delete and redirect your submitted data.

javascript - iFrame expands with content but does not shrink -

I have a cross domain iframe. The actual iframe works fine and displays the page at 100% height. My problem is the first page is 1200px, if you click on a link within the iframe and the next page is 800px, then you get 400px free space below. Therefore the IFrame grows up to fit the content, but will not shrink. Below is my code: The code that goes to the page for iframe: The code that goes to the page receiving iFrame: & lt; Script type = "text / javascript" & gt; Function resized CrossDomainIframe (id, other_domain) {var iframe = document.getElementById (id); Window.addEventListener ('message', function (event) {if (event.origin! == other_domain) Returns; // Only accept messages from specified domains if returns (isNaN (event.data)); // only a few Accepts which can be parsed as a number var altitude = persian (event.data) + 32; // scrollbar iframe.height = height + "px";}, false) to avoid some extra height Add } & Lt; / Scrip...

asp.net - redirect a user based on Rolegroup -

I have a very easy way of calling on page load, Identify the protected sub (if user.Identity.IsAuthenticated) then Else Response.Redirect ("login.aspx") end if end sub what I want to do is throw a redirect The role is a part of the user on the group, so if they have been certified, but "admin" is not part of the user group, Redirecting to a different page .... Some such as protected sub-identities () if the user is Identity.IsAuthenticatedIf user. Indentia. Initial Group ("Admin") Response.Redirect ("AdministratorDefault .aspx ") End if other feedback. Redirect ("login.aspx") End & End End Is such a thing possible? I can not find any answer. if (User.IsInRole ("Administrator") ... end if

multithreading - Process Large File for HTTP Calls in Java -

I have millions of lines on which I need a process. Each line in the file will result in an HTTP call. I am trying to figure out the best way to attack this problem. I can clearly read the file and call it sequentially, but it will be incredibly slow. I want to parallelize the call, but I'm not sure if I should try to read the entire file in memory (something I'm not a big fan of) or (which I should try to parallelize the reading of the file simultaneously The best way to attack this problem is to find some ideas here. If there is an existing structure or library that does something similar, then I am also happy to use it. Thank you. I want to parallelize calls, but I'm sure If I should not read the entire file in memory You should use a executable service to use a surrounded blocking queue As you read in your million lines, you submit a job in the thread-pool until the block queue is complete. 100 will be able to run together simultaneously without...

android - How can I access a view of an activity from another activity -

I need to hide TabHost's tabs from child activity I tried getParent () and this Also did not work Also tried: TabHost th = (TabHost) ((TabsActivity) getBaseContext ()) .findViewById (android.R.id.tabhost) ; Th.setVisibility (View.INVISIBLE); but it throws a nullpointer never access directly Current Activity to other activities owned by , because they can be recycled during this time (because there may be other activity That has been destroyed in the meantime.) You need to communicate in a standard way to other activity For example, your child activity results to parent activity , which it can then explain (you value to intent ). Another solution is using a static variable, but it is not very good and if you are not careful enough then its risk. For more information about communication between actions, see and.

vb.net - Panel Controls to Image -

Image
I am trying to save the contents of a picture to an image which is displayed on the picture box, I drawtobitmap method I am using the following: Personal sub button handles 3_Click (System.Object, and Sender as System.EventArgs) button 3. Click Dim Bmp as New Bitmap (Panel1.Width, Panel 1. Highlight) Panel 1. DotBetmap (BMP, Panel 1. Client Rectangle) PictureBox 1 BackgroundMage = BMP and All Image box displays the image, though the draw order is incorrect. box 3 on the left side There is a panel with buttons. In the box on the right side there is a picture box. Note how order is different. Does anyone have any suggestions about how to fix it so that the ordering is the same, as it is on the panel? "post-text" itemprop = "text"> I did it in C #, but you should be able to translate: private Zero Button 3_Click (Object Sender, EventArgs E) {Reverse Control (Panel 1); Var BMP = new bitmap (panel 1 width, panel 1. high); Panel 1 DotBetmap (BMP, ...

eventmachine - em-websocket and javascript client connection -

मेरे पास एक साधारण इवेंटमैचिन वेब सॉकेट सर्वर (इवेंटमैचिन 1.0.0) है: EM.run {# WebSocket Server EM :: WebSocket.start (: होस्ट = & gt; "0.0.0.0",: port = & gt; 8080) do | ws | Ws.onopen do sid = @ channel.subscribe {| msg | | Ws.send msg} डालता है "* नया वेबसॉकेट क्लाइंट & lt; # sid} & gt; कनेक्ट!" अंत में | संदेश भेजें | msg | डालता है "* websocket क्लाइंट & lt; # {@ sid} & gt;: # {msg}" अंत ws.onclose do @ channel.unsubscribe (sid) डालता है "* webscover क्लाइंट & lt; # {@ sid} & gt; बंद" समाप्ति अंत } मैं इसे जावास्क्रिप्ट क्लाइंट के माध्यम से निम्नलिखित कोड से कनेक्ट करने का प्रयास कर रहा हूं: socket = new WebSocket ("ws: // localhost : 8080 "); Socket.onopen = function (e) {socket.send ('Connesso'); }; Socket.onmessage = function (mess) {if (mess) {socket.send (mess)); }}; Socket.onclose = function (e) {socket.send ('Disconnesso'); }; सफारी के पिछले संस्करणों के साथ यह ...

javascript - Pick up an image already drawed in canvas -

संभव डुप्लिकेट: मैंने एक फॉर्म बनाया था जो base64 में php स्क्रिप्ट के लिए एक तस्वीर भेज सकता है। मुझे फ़्लैश के साथ छवि पर कब्जा करना होगा और इसे कैनवास में डालना होगा (प्रपत्र पोस्ट करने से पहले पूर्वावलोकन के लिए उपयोगी) लेकिन मैं कैनवास में वास्तविक तस्वीर डेटा को एजेक्स के माध्यम से भेजने के लिए कैसे प्राप्त करूं? (अंग्रेजी के लिए क्षमा करें!) :-) धन्यवाद संपादित करें: हल! मैं सिर्फ कैनवास की ओर इशारा करता हूं canvas = document.getElementById ('canvas'); pngBase64 = "पोस्ट-टेक्स्ट" आइटमप्रॉप = "टेक्स्ट"> कैनवास = दस्तावेज़.getElementById ("कैनवास"); Context = canvas.getContext ("2d"); डेटा = context.getImageData (0,0, कैनवास.विंड, कैनवास। हाइट);

Is there a concise emacs lisp equivalent of Python's [n:m] list slices? -

One thing I remember myself in emacs lisp is surprising, a special bit of manipulation in the list A short list of Python miss skiing. & gt; & Gt; & Gt; Mylist = ["foo", "bar", "baz", "qux", "frobnitz"] & gt; & Gt; & Gt; My List [1: 4] ['Bar', 'False', 'Quix'] See the function but and nthcdr In the MACAC documentation, which will give the same result with code: (setq mylist '("foo" "bar" "baz" Quax "" fronnitz ")) (but the plot (nthcdr 1 mylist) 1) ;; There is a more concise way to get a list piece by combining butlast and nthcdr ("bar" "baz" "qux") code>? Be sure: (required 'cl) (Setq Mylist '("foo" "bar" "baz" "qux" "frobnitz")) (subseq mylist 1 4) ;; ("Bar", "falcon" "quakes")

ios - How to call native (Android) function from PlayN? -

Is it possible to call "basic" forum-specific Java code from plain games? For example, launch an external (Android and iOS) activity in response to clicking buttons? Can you link me to some demos how to do this? Yes, it is possible, you have the interface to call your original code; We did it to apply the advertisement to our game, you can see how we did it and maybe it could help you.

- Where Developers Learn, Share, & Build Careers

I am having trouble creating a UITableView section in this sample, along with I UILocalizedIndexedCollation The code project has seen the documentation for: What I have below is basically a direct copy / paste sample project, however, sample project custom object (TimezonePaper. H) and then the object is the instance variable of the object (timezonadra Fürlokelmem) in the right section. However, I am not using custom items I am just using a bunch of regular NSStrings so my question is whether the method on NSString should pass from @selector () and put the string in the correct section array? Currently, I'm calling Copy Method of NSString as a temporary hack, get things to work (which does this), but I'm not sure that this is correct. A small explanation would be greatly appreciated! - (zero) configuration section {// Get the current match and keep its reference. Self-Coalition = [UILOkExited Acid Cession Concession]; NSInteger index, sectionTitlesCount = [[codif...

accessibility - No resource identifier found for attribute 'accessibilityEventTypes' in package 'android' -

I am trying to work with accessibility with jellybean. I used it to work with Android 2 but I think that Jelly Bean has changed something. I found something here to fix it and this is: In the manifest: & lt; Service Android: name = ". MyAccessibilityEventClass" Android: permission = "android .permission.BIND_ACCESSIBILITY_SERVICE" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.accessibilityservice.AccessibilityService" /> & Lt; / Intent-Filter & gt; & Lt; Meta-Data Android: name = "android.accessibilityservice" Android: resource = "@ XML / Accessibility Service" /> & Lt; / Services & gt; And then they sent me a fire reception / XML / Accessibility Service. XML: & lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Accessibility-service xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Ac...

jquery - How to show overlay with "showLoading" with fancybox2? -

Loading in the Fancybox 1 show will also show an overlay, this is not the default in Fancybox2. What is the way to show the overlay? This is displayed by default since v2.1.2

asp.net mvc 4 - System.Data.Linq not loaded in MVC .NET 4.5 -

I have an ASP.NET MVC4 web application project in .NET 4.5 (VS 2012). This is in VB. It fails to load the name of System.Data.Linq name (with all sections and sub-namespaces) in the project is a reference set System.Data.Linq.dll. Any ideas where the problem is? When I try to add Linq2Sql classes, I receive such a warning: Specify the type specified in the namespace or import 'System.Data.Linq' The member is also not public or can not be found to make sure that the namespace or type is defined and it includes at least one public member, make sure that the name of the imported element does not use any aliases and such errors: System.Data.Linq.DataContext But this is just the beginning: if I replace the System.Data.Linq name If I try to use anything, I get an error, for example if I try to use System.Data.Linq.Mapping.DatabaseAttribute, I get such an error: type 'System.Data.Linq.Mapping.DatabaseAttribute' is not defined. I had this same problem ...

how to get data from xml with attribute in PHP? -

मेरे पास निम्न स्कीमा के साथ एक XML फ़ाइल है: & lt;? Xml version = " 1.0 "एन्कोडिंग =" यूटीएफ -8 "? & Gt; & LT; भाषाओं & gt; & Lt; भाषा का प्रकार = "फ़ारसी" abbr_type = "fa" & gt; & LT; मेनू & gt; & LT; घर & gt; & lt; / घर & gt; & LT; संपर्क & gt; & lt; / संपर्क & gt; & LT; के बारे में & gt; & lt; / के बारे में & gt; & LT; शैली & gt; & lt; / शैली & gt; & Lt; / मेनू & gt; & Lt; title & gt; & LT; घर & gt; & lt; / घर & gt; & LT; संपर्क & gt; & lt; / संपर्क & gt; & LT; के बारे में & gt; & lt; / के बारे में & gt; & LT; शैली & gt; & lt; / शैली & gt; & LT; सूची & gt; & lt; / सूची & gt; & LT; जीवनी & gt; & lt; / जीवनी & gt; & LT; चित्र & gt; & lt; / चित्र & gt; & LT; फिल्म & gt; & lt; / फिल्म & gt; & Lt; / t...

- Where Developers Learn, Share, & Build Careers

I have a fusion table in which the Kile data is in a column which is shown as the boundaries of the buildings. I would like to use that data in my own dynamic Google map so far this is the code I have written: function initialize () {var mapOptions = {center: new google.maps.LatLng} (41.558, -72.651), zoom: 14, map type EID: Google.maps.MapTypeId.HYBRID}; Map = new google.maps.Map (document.getElementById ("map_canvas"), map options); Layer = new google.maps.FusionTablesLayer ({query: {select: 'geometry', from: '5336096' // '1ZhE_f12VDQ5zr82cbftVn1Jpff_TK5ZQmC3h52Y'}, heatmap: {enabled: true}, style: [{polygonOptions: {fillColor: "# 00FFFF ", Opacity: 0.3}}]}); Layer.setMap (map); } What it does so far, puts a small green dot on each building, but not a whole polygon. Any thoughts that I am doing wrong? Remove heatmap: {enabled: true} works.

sql - Querying data groups with total row before starting next group? -

Let me ask some data in the format given below in SQL Server: ID groups Value 1A10 2A20 twenty 30 1b6 2b 4 10 points 2 c 200 even 300 I had to do it in simulation steps The query in one group The amount in the other query The union operator to combine this result set Abuse or Back to all sub-set of data using the steps 1-3 for all groups and finally union. Is there a better way to do this? Can some use of the box feature? Please advise. Edit: According to the suggestions and code samples I tried this code: Select Case ID Zero then 'Yoga' as the rest of the cast id, in the end, the case (id as VARCHAR (10)), when [group] null then 'all' remaining cast ([group] as VARCHAR (50)) [ Group] as the value from the price (Selection Number, [Group], bGAApplicationID, Section, SUM (PrimaryTotalArea) vwFacilityDetails as the price from where the Eid, [Group], bGAApplicationID, rollup by section by bgaapplic Ationid = 1102 g...

configuration management - How do you make a chef resource optional? -

I found a resource in the chef recipe that I want to be optional, that is, when the recipe runs, the processing fails Goes, I want everything to move forward. I still want to know that the curriculum had a failure with that resource, it is not just an important resource and nothing is on its basis, so I want to continue the rest. I am used to working with puppet, where you have to declare your dependencies clearly, and resources are left out, when those dependencies fail rather than a failure Do not let the whole file run to run. Not sure why this is not a real question (even after reading FAQ), but I'll add some example code to clarify what I'm asking, hopefully someone else You can vote to open or answer from. I am using Chef to establish Dev environment, and only a part of it is cloning just a few GIT repops. Nothing is dependent on them, and sometimes there is also a private repository which some gods do not have access to. If it fails to clone, then I want to con...

django field tag label class -

Is there a way to implement a class in {{field.label_tag}} I I am using Twitter Bootstrap and want to add a category to the label tag which is field.label_tag Hopefully there is a way to handle this. I'm using the Django Widget tweaks to do this for the other half of the form for entry into information. Just hope that I'm missing something which will make this part easier. Do you have {{field.auto_id}} & gt; Tried to manually create a label element for {{field.label}}, such as: & lt; Label class = "your-class" & lt; / Labels & gt; Reference:

- Where Developers Learn, Share, & Build Careers

Below page 264 of CLRS, the authors say that after getting r0 = 17612864, the R4 yield is 14 Bits Hash Value H (K) = 67. I do not understand that 67 is 670011 due to 67 in binary 67 which is 7 bits. In the textbook: Edit In textbooks, suppose we have k = 123456, p = 14, m = 2 ^ 14 = 16384, and w = 32 To optimize suggestion of Nith, we select the fraction of the form A / 2 ^ 32 which is closest (\ Sqrt (5) - 1) / 2, so that A = 2654435769/2 ^ 32 then k * s = 327706022297664 = (76300 * 2 ^ 32) + 17612864, and hence r1 = 76300 and r0 = 17612864. The 14 most important bit values ​​of r0 get H (K) = 67. 17612864 = 0x010CC040 = 0000 0000 1100 1100 0000 0100 0000 Its most important is 14 bits 0000 0001 0000 11 which is 0x43 , which is 67 besides: int32 input = 17612864; Int32 output = input & gt; & Gt; (32-14); // 67

c - #ifdef #else - neither branch chosen -

मैं निम्नलिखित कोड #if परिभाषित (परीक्षण) #define TEST_FAILED_IN_VMC (। ..) TestFailed (__ FILE__, __LINE__, __VA_ARGS__) # परिभाषित TEST_FAILED_IN_UNIT_TEST (...) TestFailedInUnitTest (__ VA_ARGS__) #sese # TFT_LEELED_IN_VMC (...) #define TEST_FAILED_IN_UNIT_TEST (...) #endif और संकलक complians;> और एक कॉल TEST_FAILED_IN_VMC (;, राज्य परिधीय, testSuiteName, testName, "बुरा राज्य (% d) आंतरिक कोडिंग त्रुटि") बनाने के testSuiteName और testName परिभाषित नहीं हैं - भले ही #TESTING परिभाषित नहीं है। [अपडेट] संकलक भी "त्रुटि समारोह 'TEST_FAILED_IN_VMC' के 3 निहित घोषणा कहते हैं [अपडेट] कृपया इस रेखा से नीचे veryting ध्यान न दें। समस्या से ऊपर है। धन्यवाद। तो, मैंने यह [अपडेट] else होना चाहिए #else होना चाहिए, तो मुझे बताया गया है कि परीक्षण defiend नहीं है हां, तो क्यों काम नहीं कर ऊपर कोड है #if परिभाषित (परीक्षण) #Error "परीक्षण परिभाषित किया गया है कि & lt;? & Lt; & lt; & lt; & lt; & lt; & lt;...