Posts

Showing posts from April, 2014

osx - "Couldn't find function symbol in library" - JS-Ctypes -

मेरी सी ++ लाइब्रेरी फ़ंक्शन है int आरएफडी_स्टार्टबैकग्रीथथ्रेड () मेरा कोड overlay.js है यूरी = एडऑन.जेटरेसोसुरिय ("घटक / मैक / libReverbFirefoxExtensionLib.dylib"); This.extensionLib = ctypes.open (uri.path); This.startBackgroundThread = this.extensionLib.declare ("आरएफडी_बैंकफ्रंटफ्रेड", ctypes.default_abi, ctypes.unsigned_int); कोड अंतिम पंक्ति पर एक अपवाद फेंकता है। यह कहते हैं, " पुस्तकालय में फ़ंक्शन प्रतीक नहीं मिल पाया "। लायब्रेरी ओएस एक्स पर i386 और x86_64 (लेकिन पीपीसी कट्टर नहीं) दोनों में एक "वसा डिलिब बाइनरी" है शेर (10.7) फ़ायरफ़ॉक्स संस्करण 11। बेहद मदद की ज़रूरत है धन्यवाद। ज्यादातर यूनिक्स प्लेटफार्मों में, ओएस एक्स, सी फ़ंक्शंस में प्रतीकों के साथ प्रीफिक्सिंग द्वारा प्रतीकों के लिए मैप किया जाता है। एक अंडरस्कोर, इसलिए int foo (int) को सिर्फ _foo के रूप में समाप्त होता है। लेकिन वह C ++ के लिए काम नहीं करता है, क्योंकि सी ++ में, आप एक ही नाम के साथ दो अलग-अलग कार्य हो सकते हैं, विभिन्न प्रकार के...

asp.net - SignalR - Leave All Groups -

A signal R Hub can be linked to the group using the client or removed. A customer may belong to multiple groups Is it currently possible to remove a customer from each group related? I think what I see is something like the customer [* allgroups *]. Leave (context.ConnectionId) It seems that they have not implemented it yet , But it is considered a candidate for v3. Request a feature with the following code: Public Fixed Class SignalRConnectionToGroupsMap {private static readonly ConcurrentDictionary & lt; String, list & lt; String & gt; & Gt; Map = new concurrent extension & lt; String, list & lt; String & gt; & Gt; (); Public Stable Bull TryAddGroup (string connection id, string group name) {list & lt; String & gt; group; If (map! Triage value (connection etc., out group)) {return map. TryID (connection IDE, new list & lt; string & gt; () {groupName}); } If (Group! Canton (groupname)) {groups.Add (groupName); } Back true; ...

objective c - making buttons change size along when zoom -

Image
मेरे पास UIScrollView है, इसमें UIImageView और UIButton के अंदर है I मैं जवाबों में पढ़ रहा था कि अगर मेरे पास एक एकल दृश्य है जिसमें मेरी ज़ूममेबल सामग्री शामिल है, तो मुझे ठीक होना चाहिए समस्या ये है कि जब छवि नहीं होती है तो बटन जूम नहीं होता। मैंने सोचा कि मैं क्या काम करूंगा, क्योंकि स्क्रॉल व्यू ज़ूम करने योग्य दृश्य है क्या मुझे एक और यूआईवी्यूवी बनाने की ज़रूरत है और वहां पर सब कुछ डाल दिया (और वही पदानुक्रम?)? क्या आपने अपने स्प्रिंग्स और स्ट्रट्स की जांच की है? "ऑटोसाइजिंग" के अंतर्गत आकार निरीक्षक में देखें उन छोटी लाल रेखाएं .. अगर ऐसा नहीं है, तो 'ऑटो लेआउट' की खोज करें।

asp.net - Specify datetime format for WCF Data Service -

Is there a way to specify the date-time formatting given by the WCF data service? Looks like the default format, which looks like / date (1339515455030) / , is the number of milliseconds from midnight to January 1, 1970, UTC. I can understand how to parse that if I have to, but I specify a more favorable format instead. "post-text" itemprop = "text"> OData DateTime format (assuming you have not already formatted it in the string) Wire format interacted between client and server resting on. The above format is from a standard javascript date object and corresponds to it. It's different, and the JSON Lite is still different. The special note is that we have decided to go away from the traditional Javascript date format in favor of JSN Lite. In any of these cases, if you have WCF DS client or data. If you are using a client like JS, then the client will be careful to dereserve the value properly. Atom formatted date: & lt; D: order date m: type ...

Running Terminal within a Python Script -

I am trying to run a command in the terminal via a Python script. The command, which only takes three arguments, works perfectly when executed in the terminal. What is entered in the command line here: gpmetis input file number offset Ask inputfile anywhere, desktop, outputfile is executed in the same place after gpmetis (it is named as inputfile.part.numberOfSections ). gpmetis works only in the terminal, but for condensing purposes, I want to use it in the middle of the Python script to save time. (I can already alter the files from terminal and python and almost) But this is where I get problems ... this and it gives a useful signal that how the terminal in Python To be executed, I'm still not getting outputfile when I run Python code It seems that the output is suppressed or the way I call the terminal is faulty. I am currently saying terminal: def terminal (inputfile, numberparts): osystem ("gpmetis inputfile numparts") outputfile = "...

How do I use data passed back in the response from ajax jQuery? -

I try to use the response from jQuery AJAX request to set the inner HTML of a div with a specific ID I am doing I'm using this code: $ (". Show_comments"). Click (function () {var nameName = $ (this) .closest ("article") .tr ('id') $ .ajax ({url: "commentView.php", data: {'graphname': graphname} , Cache: incorrect, data type: "html", // so that it is automatically parse it as HTML success: function (response) {$ (this) .clostest ("article"). ("Comments "). Html (feedback);}}); But it does not appear at all, I have tried to googling around, but whatever I can find is I say that I will do it I am ... I have tested in firebug and the AJAX request I want to give me the exact feedback ... but I can not use it to set the Devell's internal HTML for feedback! / P> There is another scope for your AJAX success handler and this is not Do not think so. Change your code: var articlename = $ (th...

iphone - setting UIButton font -

मेरे पास UIButton में पाठ सेट करने के लिए निम्न कोड है [self.fullListButton_ SetTitle: [NSString stringWithFormat: @ "% d", [self.newsfeedItem_.newsfeedToSubjects count] - 3] forState: UIControlStateNormal]; समस्या यह है कि मैं इसके लिए फ़ॉन्ट सेट नहीं कर सकता। आईओएस के नए संस्करण में: UIButton * myButton; MyButton.titleLabel.font = [UIFont systemFontOfSize: 12]; सामान: अपने कोड में: self.fullListButton_.titleLabel.font = [UIFont systemFontOfSize: 12]; या self.fullListButton_.titleLabel.font = [UIFont fontWithName: @ "एरियल" आकार: 12];

javascript - CSS in newly-created window -

I'm creating a new window using javascript (w / jQuery), and I'm creating new nodes in the new body Add the window to the code like this: var consoleWindow = window.open ('', '', 'width = 460, height = 345'); $ (ConsoleWindow.document) .find ('body') attached ($ ("#debug_console")). The problem is that I have assumed that the CSS rules for the parent window will apply to the nodes in the child window, instead I can get the format HTML without it. How do I apply CSS in a new window? thanks for your help. Just use something like this $ (consoleWindow) .document) ('& lt; link rel = "stylesheet" href = "style.css" type = "text / css" /> gt;'); But you have to point to link href from your CSS file.

c++ - undefined reference to Mysnprintf -

CodeBlocks and am trying to create hook DLL inside DllMain #include "main.h" #include "asm.h" #include & lt; Stdio.h & gt; using namespace std; Static Violence WINAPI Mysnprintf (four * str, int len, const char * format, ...); Static Zero InitDll () {origininalsnprintf = (snprintfFn) GetProcAddress (GetModuleHandleA ("msvcr90.dll"), "_snprintf"); ASM code; Code.JMP ((int) Mysnprintf); // where JMP = Aussie & amp; JMP (Intrate) {...}} I have no clue what is wrong because if I did this with Microsoft Visual C ++ So this will not work the error !!! The linker tells you that is undefined , and that's right. You have not written definition for your function you have only declared . After the function, place some curly braces and tell your compiler what you want to do do to do that function: stable Violence WINAPI Mysnprintf (four * str, int len, const char * format, ...) {...}

Java catch/finally blocks skipped completely? -

We have Thredpul Aksclor-back performance module I have some functions are abolished apparently application code but The worker leaves the code in any way by attempting / holding / ending and just raises the next task, so that the last one misses the critical status reporting code. In this example, 257832: 5 was raised from thread-8 but this thread eventually starts another task. 2012-07-11 15: 53: 39,389 information [pool-1-thread-6]: work (258861: 5): Getting started 2012-07-11 15: 53: 39,389 INFO [pool -1-thread -6]: A work in progress ### Logged by App Logic 2012-07-11 15: 54: 18,186 INFO [Pool 1-Thread-6]: Work (258868: 5): Getting Started ### Pick Up Another Suddenly! 2012-07-11 15: 54: 18,186 info [pool-1-thread-6]: a work going on ### logged by AP logic 2012-07-11 15: 54: 18,445 information [pool 1-thread -6]: Work (258868: 5): Returning from work. 2012-07-11 15: 54: 18,446 info [pool-1-thread-6]: work (258868: 5): finalizing 2012-07-11 15: 54: 18,487 information [pool-...

- Where Developers Learn, Share, & Build Careers

I have made my own NSIS plugin DLL. dll a function which takes a hwnd ID number as a parameter and then editboxes parents as hwnd that creates an edit box window with hwnd My problem :. I am having trouble in passing my NSIS plugin DLL to HWND I can get the hwnd ID and then identify the actual hwnd (I think that) but when I made my editbox never showed it on its hwnd? Am I doing wrong? How do I correctly pass the hwnd parameter as it seems? extern "C" void __declspec (dllexport) CreateEditbox (HWND hwndParent, integer string_size, TCHAR __cdecl * variable, stack_t ** stacktop, extra_parameters * Extra) {g_hwndParent = hwndParent; EXDLL_INIT (); {Int hwndID = popint (); Acdbludbludbludbludbludbludbludblud = gate Delgitm (Acdbludeepiar, Acdbludiaidiaidi); HWND a = CreateWindowEx (WS_EX_TRANSPARENT, text ("edit"), text, WS_VISIBLE | WS_CHILD, 20, 20, 100, 20, hwnd, zero, GetModuleHandle (zero), zero); }} My NSIS code: function page custom start start...

c++ - Set Precision for double -

I am trying to set the number two decimal numbers for the user to double type of data, and I have an appropriate header file But the result of the demonstration is only integer, not a decimal? I really appreciate any help You want to use the following format. cout & lt; & Lt; Set CPC (# of last decimal places) & lt; & Lt; Fixed & lt; & Lt; VarName & lt; & Lt; Endl; There is a fixed input output manipulator which tells you that you are determining the accuracy for the number of locations after the decimal point.

c++ - error while compiling boost in android -

I'm trying to install 1.5 according to 1.5. When I compile, I get an error here is a piece of compilation error: gcc.compile.c ++ bin.v2 / libs / thread / Build / gcc- and roid4.4.3 / release / link-static / runtime-link-static / threading-multi / pthread / thread.o & lt; Command-line>: Warning: "BOOST_FILESYSTEM_VERSION" redefined & lt; Command Line: Warning: This is the location of the previous definitions included in the file ./boost/thread/thread.hpp17, from Libs / Thread / src / pthread / thread.cpp: 11: ./boost/thread/pthread /thread_data.hpp: 'zero promotion :: thread_editers :: set_stack_size (size_t)' in member function: ./boost/thread/pthread/thread_data.hpp:42: error: 'PAGE_SIZE' was not declared in this scope " ../../toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 / bin / arm-linux-androideabi-g ++ "-ftemplate-depth-128 -O3 -finline-functions -Wno -inline -Wall -pedantic --sysroot = .. / .. / platform / A...

c++ - Returning a pointer and passing in a const reference -

When trying to learn about Poco networking libraries, I came to the following snippet: Class MyRequestHandlerFactory: Public HTTPRequestHandlerFactory { Public: Virtual HTTPRequestHandler * createRequestHandler (Const HTTserverRequest & amp;) {New MyRequestHandler Return; }}; I have a problem with the return type ( HTTPRequestHandler * ) and the method is unable to understand logic ( const HTTPServerRequest & amp; ). Why is it that the return type HTTPRequestHandler indicator? Does new MyRequestHandler return an address for an object which can be referenced in its base type? In addition, I understand that the const is used to make the context irreversible so that the method can not change the referenced object, but no name for the reference type Has been given and it is not being used in the createRequestHandler Can anyone tell me what's going on here? Thanks return type If you see the "Learning Poko" code web site, class MyR...

devexpress - How to add image in image gallery in DevExprees -

How do I add the image to the image gallery I am using. I want to choose my image. It is very easy to add the necessary pictures to the pictures folder located in a module (If there is no such folder, create it). Related help topics:

c# - Disabling particular Items in a Combobox -

I have a WinForms application and I was wondering if there was a more elegant way to disable Combobox items without SelectedIndex property return It was - 1 for all the disabled values. I have been googling and many solutions include ASP.NET dropdown list but it looks promising. I think I might have to make my combo box control but before I invent the wheel again, I think that if it is possible I would ask here. UPDATE Here is the ultimate solution, thanks to Arif Iqbal: // form a Cambodia And add it to the system named combobox 1; Using System.Drawing; Using System.Windows.Forms; Namespace WindowsFormsApplication6 {Public Partial Category Form 1: Form {Public Form 1 ()} {InitializeComponent (); This.comboBox1.DrawMode = DrawMode.OwnerDrawFixed; This.comboBox1.DrawItem + new system.window.form. DietemeventHandler (this.comboBox1_DrawItem); This.combobox1.SelectedIndexChanged + = New System. The eventhandler (this.comboBox1SelectedIndexChanged); } Private Zero form1_load ...

- Where Developers Learn, Share, & Build Careers

I'm using Django to send iOS push notifications. To do this, I need to access the currently stored .pem certificate file on the server in my app directory with view.py, models.py, admin.py, and so on. When I try to send push notifications to a dragon shell, everything works fine on the server, but when I try to send a push notification using a DjangoView, it does not send me and gives me an SSLLRer is. I think this is because Django can not find the .pem certificate file. In short, I'm wondering how a Django view function can be read in another file on the server. No problem, I tried to redo it using an absolute file path, and I did this work after restarting Django.

regex - R programming: regexpr next occurence -

मेरे पास निम्न कोड और परिणाम हैं: & gt; X & lt; - c ("एबीसीडीई सीडीईएफजी एफजीएचएजी") & gt; एक्स [1] "एबीसीडीई सीडीईएफजी एफजीएचएजी" & gt; Regexpr ("D", x) [1] 4 attr (, "match.length") [1] 1 regexpr केवल "D" की पहली घटना देता है, मैं कैसे कर सकता हूँ "डी" की सभी घटनाओं को वापस करने के लिए इसे प्राप्त करें आप बहुत करीब थे - सिर्फ एक पंक्ति मदद फ़ाइल में regexpr से नीचे ... gregexpr ("D", x) # [[1]] # [1] 4 8 # एट्रर ( , "Match.length") # [1] 1 1 # एट्रर (, "उपयोग करेंबिट्स") # [1] सही

windows applications - c# a generic error occurred in gdi+ when save image -

I try this code to resize my image: ConvertToBitmap (TxtImage.Text); Private Zero ConvertToBitmap (string filename) {if (File.Exists (filename)) {var origImg = System.Drawing.Image.FromFile (filename); Var widthDivisor = (double) origImg.Width / (double) 900; Var elevation = (double) origImg.Height / (double) 750; Int Nudith, NewHeight; If (width divider This size changes to the image, but some error has been shown in this error code GDI. Any additional effort is welcome Allow folder full security, so it's a great job

c# - Is there a sample why Equals/GetHashCode should be overwritten in NHibernate? -

I get lots of posts where it is explained that one should always override the same / gatehashcode on the NHibernate unit class . If I do not use the group, is it really necessary? I can not get a sample only, where it is shown that the missing equivalent / gatehashcode can cause unexpected and incorrect behavior. It's strange that everyone says that it is necessary, but no one can provide a sample which why need it. Recently was selecting N + 1 about NHibernate, even if Fetch specified same / GetHashCode missing problem with the implementation. Any other similar answer links. Override equal / GetHashCode here. edit You need to override them all the time is not. If you are using composite keys, multiple sessions may be required with different entities or stateless sessions. If you are working with only one session, then NHE Burnett stores the entities in the first level cache using an identity map. The unit of that case is compared by comp...

java - No such method exception Hadoop -

When I am running a Hadoop .jar file from a command prompt, it throws an exception that is such a method stack The method is not saying. / P> StockKey My custom class is defined for my own key. The exception is here: 12/07/12 00:18: 47 info mapred.JobClient: Task No.: try_201207082224_0007_m_000000_1, status: Failed java.lang.RuntimeException: Java.lang.NoSuchMethodException: SecondarySort $ StockKey. & Lt; Init & gt; () .io.WritableComparator on org.apache.hadoop on org.apache.hadoop.util.ReflectionUtils.newInstance (ReflectionUtils.java:115) org.apache.hadoop.io.WritableComparator.newKey (WritableComparator.java:109) . & Lt; Init & gt; org.apache.hadoop.io.WritableComparator.get (WritableComparator.java:51) on org.apache.hadoop.mapred.JobConf.getOutputKeyComparator (WritableComparator.java:95) (JobConf. Java: 795) org.apache.hadoop .mapred.MapTask $ MapOutputBuffer at & lt; Init & gt; (MapTask.java:817) organization on org.apache.hadoop.mapred.Map...

How to upload the diff of a file using file_put api in dropbox -

How can I upload a file's file to a dropbox using file_put api? I am thinking that the dropbox will provide support for uploading or downloading only the difference of file. I am not using Dropbox Sync Tool. There is currently no way to send or receive only one difference, the smaller unit is the whole file.

html - Jquery find a span tag with specific style -

मेरे पास span टैग td के अंदर तालिका विशिष्ट शैली के साथ रंग: लाल । मुझे उस स्पैन टैग को ढूंढना है और इसे नीचे छिपाया जाना है I HTML: & lt; table class = "table_1 "& gt; & LT; tbody & gt; & LT; टीआर & gt; & LT; टीडी & gt; & Lt; span id = "गतिशील रूप से उत्पन्न" शैली = "रंग: लाल;" & gt; त्रुटि! इसे सही करें। & Lt; / span & gt; & Lt; / टीडी & gt; & LT; टीडी & gt; & LT; अवधि & gt; // तीन अलग-अलग साइटों के लिए तीन लिंक्स & lt; a & gt; & Lt; / a & gt; & Lt; a & gt; & Lt; / a & gt; & Lt; a & gt; & Lt; / a & gt; & Lt; / span & gt; & Lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & Lt; / टीआर & gt; & Lt; / tbody & gt; & Lt; / तालिका & gt; Jquery: प्रत्येक (फ़ंक्शन (n) {$ (this)। Find ('td: eq (0)')। (मिलते समय) 'Span')। Html ("");}); ...

android - my app consume high CPU -

My app is made up of four tabs: three scenes with a webview and some text / audit ... the problem is my app Consume too many CPUs and I do not understand why, and the main problem is that when the app is turned on (user uses the Home button), my app is still CPU (about 20% Or more!) And battery consumption. I do not understand what the CPU uses so much, so I have two questions: How do I properly (with eclipse) process ( Method, activity ...) that use a lot of CPU? When I press the user's home button, how can I "freeze" with 0 CPU consumption (I think that is in onPause method, I try it with a full (), this work , But when the user returns to my app, he gets FC.) Thank you very much! Edit: It seems that my webview consumes the CPU, how can I stop this webpage without destroying the webview object? I am getting the solution: The JavaScript content was problematic in the webview. To resolve this: Prevent public null at @Override () {super.onPause (...

iphone - To save username & password using objective c -

Login view & amp; Some listings have been shown after ... so I use the username & amp; Password so that once the logged view is not visible, the password will be sent directly to "post-text" itemprop = "text"> as if logged in with the correct ID Recommended, you can use NSUserDefaults . If you are accumulating the password, then I suggest that you can also add the level of security for it. You can use secure NSUserDefaults (I have not used it personally, but some people report it when it's useful). You can find that or you can use

- Where Developers Learn, Share, & Build Careers

I have experienced quite awkward behavior in TextMate for some time. I had trouble using the keyboard. A line (which is cmd - / ) or shortcut to comment on my Swiss layout is CMD + SHIFT + 7 where SHIFT + 7 result in a / ) Already, when I switched the lion 2 months ago (before that I had never had any problem). I then used to restart TextMate and worked again. But now, the restart does not solve the problem, so I went to the bundle editor and tried to reset the shortcut, and I can set it to me anywhere, but cmd - / not at! + SHIFT + 7 `, the input field is empty! I have some bundles installed from my switch for Lion (Cucumber, RSPEC, Rubyampi, Ruby DeBug, Shia), so perhaps one of them produces trouble? Or is it also the fact that I do not seem to be able to send CMD + SHIFT + 7 in the bundle editor, somewhere else "TextMate "Is Blocked From Outside? How can I debug it? Thanks for the help. goes out that he was running and captured CM...

visual studio 2010 - What's the best way to Bookmark/List TODOs in VS2010 for Teams? -

Image
As the VS2010 Task List scans the active file only for comments tokens and bookmarks if the developers run on different drives / paths Project is How can you solve such problems? We use a bugtracking tool, but what would be the best way to manage Open Tudo for a project? Develeopers are common to use such tags as "TODO" in the code. Nowadays we use Pragmas, but we want to get rid of them to get less warnings in our night exam. itemprop = "text"> For proper "to-do" management, we use GIRA, but it is called "to-do" management It is a little dissatisfied. When you want to manage the chain that works in teams, you have to start looking at third party devices. If you want a Visual Studio integration, the Visual Studio Team System is designed for this, but I have not had any experience with this, there will be no more comments from this. The last time I have experienced another tool, but since I finally used it, a lot has changed ...

jquery - Selecting .not(this) not working -

I have a few select lists which are all the same content, I want to be when one option is selected in one It will be disabled in others. & lt; Div class = "social-option" & gt; & Lt; Gt selection and; & Lt; Option selected = "selected" value = "facebook" & gt; Facebook & lt; / Option & gt; & Lt; Option value = "0" & ​​gt; & Lt; / Options & gt; & Lt; Option value = "Twitter" & gt; Twitter & lt; / Option & gt; & Lt ;! - If I choose it - & gt; & Lt; Option value = "linked" & gt; Linked & lt; / Options & gt; & Lt; Option value = "Instagram" & gt; Instagram & lt; / Option & gt; & Lt; Option value = "Flickr" & gt; Flickr & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; Div class = "social-choice" & gt; & Lt; Gt selection and; & Lt; O...

VBA Excel: The specified dimension is not valid for the current chart type -

I am trying to save the Axel diagram with VBA as the image I call multiple workbooks with the whole code Let me see all the worksheets and save all the pictures. The following code works with Excel 2007 and 2010 (but there is a horizon and a vertical line is visible due to + 4). If I change round (SP width + 4, 0) to round (SP width, 0) then I get the following error in 2010 (but not in 2007): Run-time error -2147467259 (80004005) ': The specified dimension for the current chart type is not valid. Worksheet set as Shape Sheet in the form of shak sht = Application.ActiveWorkbook.Sheets (shtName) set shp = sht.Shapes (chrtName) shp.CopyPicture xlScreen, xlBitmap Dim objChart Activate the chart object as objChart = Sht.ChartObjects.Add (200, 200, round (shp.Width + 4, 0), round (shp.Height + 4, 0) objChart.ActiveChart. Activate ActivePart.Paste file Name: = Full text, Filtername: = true (full text, 3) objChart.Delete Does anyone know how I can use 4? The following was fo...

eclipse - Indexing all #ifdef and #else blocks with CDT -

I have each #ifdef and #else block in my C / C ++ source files with my CDT indicator 8.0.2 Linking to Unguntu on Indigo Adding symbols will not work because it will not contain # block blocks Is there any way that I can ignore Eclipse CDT #ifdef Can I Block # Block Block? Like other indices (like emacs cscope) I was searching for days and I did not get any good solutions. I actually have a large amount of code and it would be better if we do not edit it to temporarily delete #ifdefs thanks. No short answer CDT pre-processor does not work like this. It adheres to the correct words, which means that it only parses a branch of #ifdef Emacs may be going to each branch but it does not do such an analysis which is correct or complete as a CDT. Your only option is to set up multiple build configurations, which is configured to parse each branch. Then you want to work in different branches, then you can construct the configuration. It is far from ideal because it can be ti...

lisp do loop factorial code -

(defun fact (n) (करू ((i 1 (+ 1 i)) (प्रॉड 1 (* I prod))) ((बराबर) प्रॉड))) मैंने ऊपर कोड किया है और जब मैं कोशिश करता हूँ, तथ्य (4) , इसे दे मुझे उत्तर 6 है । मुझे यकीन नहीं है कि क्या गलत हो रहा है क्या कोई मेरी मदद कर सकता है? में बदलें (defun fact (n) (do ( (I 1 (+ 1 i)) (प्रोड 1 (* i प्रॉड))) ((बराबर i (+ n 1)) ठेका))) असल में, आप एक कर रहे थे आवश्यक से कम चलना।

php - How can I Split Search Results into Post Types Tabs on Frontend? -

Image
I have a WordPress installation; I have around 3 x custom post types on my site when I do a search All post types are displayed on Front Page at 1 page. Some post types are completely different from others' content, so the results look a little funny. Is there a way to break the tab in the result according to the post type? I want to leave the result as default (all results) by default, but after that type of post type there are tabs to filter out individual results. I have made a JPEG here, help me to clarify what I am actually trying to do. Thanks Update 1: Just wanted to add a little bit more information on the code side I had plans to use shortcodes as tabs or in the PHP template I & lt; Php post type 1 result [/ tab] [tab title = "post type 2"] post type 2 results [[tab style = "boxed" id = "searchTabs"] [tab title = "post type 1"] echo do_shortcode '/ Tab] [tab title = "post type 3"] post type...

- Where Developers Learn, Share, & Build Careers

I create ListView and my own listAdapter I use simple_list_item_2 I want to change the color of the text for each state below The code for dark.xml is: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Selector xmlns: Android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Item Android: state_choose = "true" Android: color = "@color / selected text" /> & lt; Item android: state_focused = "true" android: color = "@ color / selectedTextListColor" /> & Lt; Item Android: stat_press = "true" Android: color = "@color / selected text" /> & lt; Item Android: Color = "@color / text list collar" /> & Lt; / Selector & gt; Next when I try to set that functionality, it is a part of code I think is a problem. Arrayadapter & lt; Element & gt; Adapter = new array adapter & lt; Element & gt; (E.g., andro...

java - exception in creating xml file using xml outputter -

यहां मेरा सरल कोड है: try {element performance = new element ("performances "); दस्तावेज़ डॉक्टर = नया दस्तावेज़ (प्रदर्शन); doc.setRootElement (प्रदर्शन); प्रदर्शन .सेटअेटिवेट (नया एट्रिब्यूट ("दिनांक", डेटफ़ॉर्मेट। प्रारूप (cal.getTime ()))); तत्व अपटाइम = नया तत्व ("अपटाइम"); Uptime.addContent (नया तत्व ("दिन") setText (नया लांग (डुप्टाइम) .स्टस्ट्रिंग ())); Uptime.addContent (नया तत्व ("घंटे") setText (नया लांग (huptime) .toString ())); Uptime.addContent (नया तत्व ("मिनट")। SetText (नया लांग (मपटाइम) .toString ())); Uptime.addContent (नया तत्व ("सेकंड")। SetText (नया लांग (सुपरटाइम) .स्टस्ट्रिंग ())); । Doc.getRootElement () addContent (सक्रिय रहने की अवधि); XMLOutputter xmlOutput = नया XMLOutputter (); xmlOutput.setFormat (Format.getPrettyFormat ()); XmlOutput.output (डॉक्टर, नया फ़्वाइरेटर ("/ होम / मैज़ी / स्क्रिप्यनिया / पेरोर _" + डेटफ़ॉर्मेट। प्रारूप (कैल। गेट टाइम ()) + "एक्सएमएल...

android - Activity not displaying -

I made a broadcast receiver which makes a notification, an activity went launched by clicking on a notification, the activity started But I can not enable this to see, I am using the following code: Private Notification Manager Information Manager; Public void onReceive (Context context, Intent intent) @Override {if (notificationManager == NULL) {notificationManager = (NotificationManager) reference .getSystemService (Context.NOTIFICATION_SERVICE); } Builder NotificationCompat.Builder = new NotificationCompat.Builder (reference) .setTicker ( "the ticker") .setSmallIcon (R.drawable.ic_launcher) .setContentTitle ( "Notice Title") .setContentText ( "the content") .setAutoCancel (true ) .setContentIntent (PendingIntent.getActivity (context, 0, new intent (context, NotificationDialog.class) .addFlags (Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK), 0)); Notification Manager Notice ("Interstitial_tag", 0, BuilderGetNotification...

Unfortunately app has stopped in Android Emulator - -

Here are my logger display items. There is no error in my app but unfortunately it has been turned off 07-12 14: 43: 15.651: E / Android Time (1475): Fatal Exceptions: Main 07-12 14: 43: 15.651: E / AndroidRuntime (1475): java.lang.RuntimeException: Failure to result ResultInfo {which is weak, request = 1, result = -1, data = intent {CMP = com.delgence.timetracker / .AddTimeActivity (additional)} =} activity {com.delgence.timetracker / com.delgence .timetracker.MainActivity}: java.lang.NullPointerException 07-12 14: 43: 15.651: E / AndroidRuntime (1475): android.app.ActivityThread.deliverResults (ActivityThread.java: 2980) 07-12 14: 43: 15.651: E / AndroidRuntime (1475): android.app.ActivityThread.handleSendResult (ActivityThread.java: 3023) on 07-12 14: 43: 15.651: E / AndroidRuntime (1475): 43: 15.651: E / AndroidRuntime (1475): android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1177) 07 android. App.ActivityThread.access $ 1100 (ActivityThread.java:123) 07-12 1...

Selectbox: Catch an onchange event that was TRIGGERED by external JavaScript? -

Please read the title carefully - this is not common. There exists a selectbox selection box on a webpage, its selected index is programmatically javascript, External JS. , when I change the index (Crossbrower solution). Is this possible? or HTML: & lt; Select id = "myselect" & gt; & Lt; Options & gt; Opt-1 & lt; / Options & gt; & Lt; Options & gt; Opt 2 & lt; / Options & gt; & Lt; Options & gt; Option 3 & lt; / Options & gt; & Lt; / Select & gt; Javascript: // code can not manipulate var select = document.getElementById ("myselect"); Select.selectedIndex = 2; // I have to notify now is waiting for your information: -) Update: This is the answer to my basic question I did not, but by using this I managed to accomplish what I initially wanted (not part of the post): select.selectedIndex = 2; Select.onchange (); Javascript conversion events require a user-initiated bro...

android - Cannot type from keyboard (hardware) in AVD (emulator) after updating ADT -

I have just been updated to the latest of ADT 20 and SDK, but since then I do not know why I can not write keyboard (hardware) with support in AVD (emulator) ASAP! Thank you, in advance! : In your Eclipse IDE, go to AVD Manager and select Your Emulator Tool Click Edit to edit the properties of this device. In the Hardware section, click on New . In Asset drop-down list, select Keyboard support and press OK . This adds assets to your hardware list but by default the value is "No". Click on the value column and it will be "Yes" . To save your changes, click "Edit AVD" . This will add an asset to hw.keyboard = file for AVD in config.ini and your emulator will support the input form keyboard.

Grails Unit Testing: Json-Codec missing / How to mock Json-Codec? -

I am testing unit controller and currently I'm stuck in the method call "encodeAsJSON ()" (Called by the controller) I get a milligram exception, which I hope is encoded SJSON () is a Grails-Codec. loadCodec must be followed by some method to search but I can not import it because my IDE (SpringSource-ToolSuite) Can not find. Error: import org.codehaus.groovy.grails.plugins.codecs.JSONCodec Everything works: Import org.codehaus.groovy.grails Plugins.codecs.HTMLCodec But I do not need HTMLCodec and there is no list of JSONCodec. This method is still working (turning on the app), but I do not know how this unit checks. any idea? Am I clarifying something? Well, I got an answer to search and try: Map.metaClass.encodeAsJSON = {- & gt; Representative} example I used String.metaClass.encodeAsSha1 = {- & gt; () () The string does not work - of course I am using the map, which will be converted to JSON needed. I think tha...

adobe - How to merge dynamic PDF files with iText library in Java? -

Using the iText library, I can merge static PDF files, but not the dynamic ones. How do I complete this task? Edit : (Collected from the comments below): I have not been clearly understood the meaning of dynamic PDF. I'm writing now Dynamic PDF file is created by Adobe Livechison Designer. I call it " XFA pdf files ". Rvander's code works very well for static PDFs. But not for XFA PDF files. They are not readable on merge. I have used this dynamic PDF files. pdf -> turbobit.net/9rn2r3quw5gx.html pdf -> turbobit.net/4e6q7a1ts4jw.html How do I merge them into a single PDF file Can i do Updated answers : Your PDF Files are created using XFA (XML Form Architecture) . IText has only partial support for XFA but is complete for Acroform You have to level an XFA form and then use it as per the requirement. Demo: XFA for PDF (Bruno Logies online gadget) may be more ... your requirement The XfaMovie example would be ...

c# - Generics: Type cannot be implicitly converted -

I have the following categories: Public Interface IWaybillDocument {long DocumentId {find; Set; } Receive a long billing document ID { Set; } String shiptonname {get; Set; } Byte address type {get; Set; } String City {Received; Set; } String country {get; Set; } Get String Postcode { Set; } String Steregeian {get; Set; } String Street 1 {Get; Set; } String Street 2 {Received; Set; } String suburbs {get; Set; } Zero merge addressing (address address); }} Public Class Vibrator DocumentList: ERPL ListBase & lt; IWaybillDocument & gt; {Public WaybillDocumentList (): Base () {}} Public Partial Class WaybillDocument: IWaybillDocument, Inonrepudiable {Public Zero MergeAddressing (address addresses) {address.Street1 = this.Street1; Address.Street2 = this.Street2; Address. Subtitles = this Suburb; Ct = ct.City; Address.ZipCode = this.PostCode; Address.StateRegion = this.StateRegion; Address. Address.AddressKind = (AddressKind) this.AddressType; }} They all compile well but wh...

c - How do I resize an ext4 partition programmatically? -

I want to convert an ext4 partition to programmatically convert it to C. I believe I can use to change the size of the partition, but not the file system? Can anyone tell me in the right direction? use resize_fs () . For an example of usage, take a look here:

asp.net - C# or SQL Server - How to get earliest or latest date from multiple date tables? -

Image
I'm not sure the title completely explains what I'm after here, to explain it in a bit more detail Try ... I should be able to display this table ... Table: Items (each time this item was installed and removed) Supplier (Supplier Rate (Supplier Rate) It should be able to: Categories in the selected period Get the initial date from the tables as the starting date Get the latest date If the start date is before the start date and after all the end dates end, it will be a simple single line. But on any date that starts or ends in the middle of the period, Determine the relevant dates for the line When T and the last line on the next start after completion. I have completed this entire program using Linq, I have something that seems like it works, but the way Ivy has done it is not really happy. My question is, what is a great way to deal with these dates? And what should I use for the best results of C # or SQL Server? The glade management ...

- Where Developers Learn, Share, & Build Careers

Using MSTest in Visual Studio, I have a problem with Selenium WebDriver, in particular, ChromeDriver Whenever I get out of the chrome driver, I get the message "chromeaderier .exe" has stopped working "and the program is freezed. At the end of all the tests, all my drivers Class cleanup: [code] [classclinify] Public Static Wide Class Clan () {Drivers. Forac (X => X. Quit ());} firefox driver fine ny Che stops, but the chrome driver always stops working. Can anyone help me with this? Edit: For a bit more clarity of my code, (chromedriver The exe program that I've added to my solution): Fixed IWebDriver driver; Fixed IWebDriver chromeDriver; Fixed String baseURL; Fixed list & lt; IWebDriver & gt; driver; [Classicalize] Public Static zero classInitialize (TestContext reference) {driver = new suggestion} & Lt; IWebDriver & gt; (); drivers = new Fayrfoksdraivr (); Kromdraivr = new Kromdraivr (route); Drivers.Add (driver); Drivers.Add (chrome...

vba - Storing a hidden, non-editable variable in a form. Word 97 Compatible -

I need a non-editable field in a word form which can be read in vba. Currently, I use a text field as hidden: ActiveDocument.FormFields ("DocID"). Select the selection. Fonts Hidden = false // Read it again to hide it. However users can still 'tab' this text field and overwrite that document ID and thus invalidate vba macro. And unfortunately it happens what happens. I can set the text field property 'Fill in-enable' to the wrong which gives the desired effect in the form, so the user can not edit it. However now this text field can not be read in vba. ActiveDocument.FormFields ("DocID"). SomeProperty // error 'Error has been requested member is not present' So my question is, Is there a way that I can hide the hidden variables in a word form Can I archive in a VBA macro? Unfortunately this should be a Word-97 compatible solution. You can use custom document properties instead, see here:

php - does fsockopen only allow certain servers? -

That's why I recently made a goal to contact Hostgator about a previous plugin that I did not have "online" or " Offline "depends on the server's status Now, here's the problem. The hostgator was disabled and after bothering them, I enabled it. But not all server ips and ports work with it? For example: & lt ;? Php $ ip = "play.magicacraft.net"; $ Port = "25567"; $ Online = @fsockopen ($ ip, $ port, $ errno, $ errstr, 200); If ($ online> = 200) {echo & lt; A href = "#" class = "MPSververOnline" & gt; Online & lt; / A & gt; '; } Else {echo '& lt; A href = "#" class = "MPServer_offline" & gt; Offline & lt; / A & gt; '; }? & Gt; Gives me this as online. If I use any other IP and IP server like: $ port = 72.20 .55.85 "; $ ip =" 25570 "; It never says offline that it is online Is it a fault on my end or on...

ios - Programmatically create pass for passkit on device? -

After getting the information to pass near passkit on the device, trying to find a way to pass it I'm on a network with a pass. What is Basically: not easily (if at all ), Then you should be able to sign it near you using signpass , which has a command line utility. It will be a cause of great difficulty and distress, making it readable by devices, Because you can not run any other process on iOS, and on the signpass code to run on the device It is not possible to repel. What do I suggest that you have on the server / wherever the data is coming, and both information and generated .pkpass How to make it, and how it should be used. Read the documentation for more information, they are very clear.

xcode - View is moved up when using vertical autoresize -

Image
In my customized window I have a NSTextView that I want to separate from the NSScrollView space. Similarly I have set it in xib. It looks fine in the interface builder, with the best location between both of them But when I run the program, the scroll view increases upward, actually covering the text view: But when I disable vertical autosciks of the scroll view, then everything is working as much as what it should be. The text view and the scroll view are under NSV, so they are brothers of each other. Most probably it was a system shortage because the scroll view was completely hidden and so it was probably taken. I have worked it by subclassing NSScrollView and override - OLD SUPPORT with resizing (zero) size: NSSize oldSize_; So now I can give Scroll View a place according to my wish.

sql - In MySQL, how can I find the sum of the N largest values grouped on a particular column? -

संभव डुप्लिकेट: मेरे पास निम्न डेटा है। id val smith 20 smith 10 smith 8 smith 30 jones 40 jones 10 jones 30 jones 30 मुझे तब क्या चाहिए आईडी द्वारा समूह के लिए है और प्रत्येक आईडी के लिए दो सबसे बड़े मानों को जोड़ता है। 30 से 30 + 20 जोन्स 70 से 40 + 30 धन्यवाद यदि आप प्रत्येक ID के लिए केवल शीर्ष दो मानों की राशि प्राप्त करने के बारे में चिंतित नहीं थे तो आप यह चाहते हैं: SELECT SUM (val) से तालिका_नाम समूह आईडी आईडी द्वारा आईडी एएससी हालांकि, "मैं शीर्ष एन कैसे प्राप्त करूं समूह के भीतर मूल्य "प्रश्न एक डुप्लिकेट है, यहां उत्तर दिया गया:

bash - Executing shell-script with parameters from java -

I've been googling for a while, and everyone seems to have a different solution, none of which works for me is . I have tried both process builder and runtime . Call both the .sh file directly and feed it to / bin / bash . string cmd [] = {"~ / path / to / shellscript.sh", "foo", "bar"}; Process P = RuntimeGreat Time (). Exec (CMD); Despite the manual running is not giving any such file or directory ~ / path / to / Shellscript.sh foo Bar works perfectly with Bash. I need to keep ~ because this shell script exists in slightly different forms, three different users. One option is to handle ~ : string homdir = System.getenv ("HOME"); String [] cmd = {homeDir + "/path/to/shellscript.sh", "foo", "bar"}; Process P = RuntimeGreat Time (). Exec (CMD); Each other has to allow Bash to handle it for you: string [] cmd = {"bash", "-c", "~ / Path /to/shel...

- Where Developers Learn, Share, & Build Careers

I have content that is being output via Wordpress, and this article is and lt; P & gt; Wrap the tag around content around me & lt; P & gt; & Lt; / P & gt; Need to remove content in . How can I do this? For example, the output is: & lt; P & gt; Posted by Bob & lt; / P & gt; & Lt; P & gt; This is the content here & lt; / P & gt; & Lt; P & gt; This is the second paragraph & lt; / P & gt; I line & lt; P & gt; Posted by Bob & lt; / P & gt; and want to leave the rest. In general,. In this case, a regex solution can work fine though $ str = preg_replace ('~ & lt; p & gt; *? & Lt; / p & gt; ~ s,' ', $ str, 1); Important things are which ? creates . * ungreedy (so that it stops as soon as possible and very last & lt; / p & gt; Modifier s . is capable of matching new lines range 1 which removes only the first match If you want only...

MySQL Join with a subquery to select only one row from joined table -

मान लीजिए कि दो टेबल हैं: टेबल पार्ट्स: स्थान पार्टनम Descrip -------- ------- -------- Whse1 एबीसी फ्रोबबिट्ज व्हेस 2 एबीसी फ्रोबबिट्ज़ व्हीएस 3 डीईएफ़ विजेट व्हीएस 3 डीईफ़ विजेट तालिका स्थिति: स्थान भाग की स्थिति --------- ------- -------------- * डिफ़ॉल्ट * एबीसी तैयार शिप करने के लिए * डिफ़ॉल्ट * डीएफ़ तैयार करने के लिए Whse1 abc Backordered अधिकांश मामलों में, डिफ़ॉल्ट स्थिति का उपयोग किया जाना चाहिए। स्थिति प्राप्त करने के लिए, क्वेरी शायद जैसे: SELECT p.Location, p.PartNum, p.Descrip, s.Status से भागों पी LEFT JOIN स्थिति एस एस.पार्टन्यूम = पी। भाग और एस। स्थान = (SELECT मैक्स (स्थान) से स्थिति s1 जहां s1.PartNum = p.PartNum और s1. स्थान ('* डिफ़ॉल्ट *', पी। स्थान)) सवाल यह है, यह है सबसे कुशल (या कम से कम काफी कुशल) ऐसा करने का तरीका? मेरी वास्तविक एप्लिकेशन में एक ही क्वेरी में 7 टेबल शामिल हो सकते हैं। मुझे लगता है कि आप सीमा 1 के साथ आदेश नीचे के रूप में: SELECT p.Location, p.PartNum, p.Descrip, s.Status FROM parts p LEFT JOIN स्...

- Where Developers Learn, Share, & Build Careers

I have a legacy project in which there are hundreds of method signatures for Winforms events. Obviously I do not want to go now and BeginInvoke / EndInvoke does not work because it will cause UI cross threading issues. Although I need to be able to mark these signatures (due to deadlock) async to control some async commands which we have to be able to do any other than deadlock No result. I can successfully call the event with the BulinWoke and it works perfectly and it works correctly. However, it breaks into another thread and breaks the old implementation which we do not want to go through and to make async and to make conscious. Then I was checking to use the incident. GetInvokationList () and looping through and calling each to separate. If the method was async, start the start / end. Otherwise call it directly on the UI thread. My only problem is that I can not find a way through reflection that it shows whether the method sign is async or not. Anyone know how to fi...

- Where Developers Learn, Share, & Build Careers

I like the Word Framework 1.2.5 word concept, but I'm having some trouble reading the code to promise a For this, it only accepts "single" result while I can create many things, I do not know how many will make. I send a request and I get back 1000 shares. Since these clauses come, I want to add them to the queue. At first I tried the sub-class of the object, which had a list, but I can not reset all the assigned variables because I wanted a simple method ... Public synchronization List & lt; T & gt; Nobody uses this project on this client, to worry about synchronization Need is Maybe I should only modify the playframe so that any idea is implemented though appreciated? I think it is better to use the promise per class and the same code is the doctor For one shown in:

richfaces - Customise the control buttons in rich:orderingList -

I am trying to change the default control button (top, top, bottom, bottom) in the richness: Ordering list component I can change the format of enabled buttons by changing the default class definitions (.rf-ord-up-tp, .rf-ord-up, .rf-ord-dn and .rf-ord-dn-bt). It works, but I want to change the button when the control is disabled (i.e. when no items are selected in the list). There are no class definitions for disabled buttons, so currently my custom buttons look unchanged whether control is enabled or disabled Anyone have any idea how to do it? .rf-ord-btn- However, Without it, you can: .rf-ord-btn [disabled = "disabled"] {} This will disable all buttons.

java - Cannot get the standard deviation, what am I doing wrong? -

I am trying to use an array originally, which is data read from a file, and then Calculates the meaning and standard deviation from the data by using that array. I can not get the right number right now. Stable public double [] [] calcStats (string [] [] x) throws IOException {double [] [] array = new double [7] [2]; Double total = 0, std_dev = 0, zodiac = 0; Int row2 = 0; {Array [line2] [0] = (total) for (line line = 1; row; lt; x.length; line ++); Array [row 2] [1] = amount of mathematics (amount); Zodiac = 0; Total = 0; If (line & gt; = 2) {row2 ++; } (Int col = 1; col & lt; x [row] height; cola ++) {total + = integer ParseInt (x [row] [col]); If (colley == 4) {total = (total / 4); }} For (int col = 1; col & lt; x [row] .length; col ++) {std_dev = (integer. ParseInt (x [row] [col]) - (total); Std_dev = Math.pow (std_dev, 2); Zodiac = + std_dev; Std_dev = 0; If (colley == 4) {zodiac = (zodiac / 27); }}} Array [row 2] [0] = (total); Return array; } Array starts...

- Where Developers Learn, Share, & Build Careers

I'm running into issues trying to isolate a scene partially. I want to use the same form for the new and edit the scenes. Both of these are on the same page The new model is at the top of the form page and uses a variable that I set in the controller. & lt;% = form_for @new_hire do | F | & Gt%; & Lt;% = Render: Partial = & gt; 'New_hire_requests / form',: local = & gt; {: F = & gt; F}%> & Lt;% end% & gt; Then I am partial for pending approval which is provided by any other partial and pending approval partial within me & Lt;% end% & gt; This is an error throwing undefined method # & lt; new_hire_request_path '; # & Lt; Class: 0x0000010488ac98 & gt ;: 0x0000010223ffc0 & gt; Is there a way to use form code for both a new and editing form on the same page? Controlling logic @new_share = newhearquest.new @ nuveer_request = current_user.New_shire_requests @ pending_ approval = @ new_...

unix - sed extract something from string -

I have a string "r1 / pkg / amd64 / misc / hash / hash-r1.r5218.tbz" But, I only want "hash-r1.r5218.tbz" Therefore, I try unix $ a = "r1 / pkg / amd64 / misc / hash / Hash-r1.r5218.tbz "Unix $ echo $ a | Sed 's /.* \ / \ ([^ \ \] * \) \. Tbz / \ 1 / '// [1] hash-r1.r5218 // I know that this should work unix $ ek $$ Sed 's /.* \ / \ ([^ \ /] + \) \ tbz / \ 1 /' // [2] r1 / pkg / amd64 / misc / hash / hash-r1.r5218.tbz // though I do not know why this does not work As far as I remember, in regexp, the previous regexp means 1 or more times to use. * In Regexp, the previous regexp means 0 or more times to use. Can anyone be understood? [2] Why failed, thank you very much All code sed support + is required to specify something that supports -r in the regedx. But instead of sed using basename or echo $ {a ## * /} Why should