Posts

cocoa touch - How to make changes to a component added via Cocoapods -

I am using a component that is working well, but I want to make a change (Padding to add something so that the pop-up could not touch the edge of the screen). In Setup Function - I can see where to change the code in setup - but of course I do not want to overwrite the changes while updating my pods. I can make a subclass, but the change is right in the middle of a huge function, so overriding is that the whole function does not look like a great idea. Is there a better way? Many thanks.

objective c - How do I add a UIView to a scrollview that doesn't move? -

I have a scrollview that scrolls vertically through a large UIView. I want to add another small UIVV to the place that lives in the same place (floating), no matter where you go. Why do not you add small UIIVOs to the supervision of ScrollView? Say your view hierarchy is as follows: UIView (main) ScrollView UIView (big) Resize your small UIView and fix UIView (main) ScrollView UIView (large) UIView (main) short)

c - The joining operator ";" in my shell isn't working properly -

I have written a simple shell in C, and I ""; The operator is working properly, the user typing command will be 1; Command2 and Shell execute the first command in the command line followed by the second command. However, it seems that, for whatever reason, it is executing only the second order. Why does anyone have an idea? This special section of my code is: four * next = strchr (cmd, ';'); While (next! = Null) {/ * 'next' number ';' * / * Next = '\ 0'; Input = run (CMD, input, first, 0); CMD = next + 1; Next = strchr (CMD, ';'); First = 0; } Your code is working for me just to handle the corner case The condition is added. Please check the code below. four * next = strchr (cmd, ';'); While (next! = Null) {/ * 'next' number ';' * / * Next = '\ 0'; Input = run (CMD, input, first, 0); Printf ("% s \ n", CMD); CMD = next + 1; Next = strchr (CMD, ';'); If (NULL == Next) {i...

python - Calculate STD manually using Groupby Pandas DataFrame -

Image
I was trying to write a solution, which is a different and a manual for calculating a mean and STD The way. I have created a = ["Apple", "Banana", "Cherry", "Apple"] B = [3,4,7,3] C = [5,4,1,4] D = [7,8,3,7] Pd DF = PD to import pandals DataFrame (index = class (4), column = list ("ABCD")) DF ["A"] = A DF ["B"] = BDF ["C"] = C DF ["D"] = D Again, I made a list of A duplication. Then I went through the group all the time of the objects and calculated the solution. import as np l = list (set (df.A)) df.groupby ('A', As_index = False) listMean = [0] * len (df.C) ListSTD = [0] * L in the LAN (df.C) X: s = np.mean (df [df ['A'] == x] for C =.) = Z = [index for index, enumerate In the object (df ['a']. Value] x == item i for z: listMean [i] = s in: s = np.std (df [df ['a'] == X] .cvalues) z = index for index, enumerate item (df ['a']. Value) if x ==...

java - @PluginTarget(Node.class) not registering as neo4j plugin -

Simple class below will not show as a plugin package com.danmacias neoneoteplugin ; Import java.util.ArrayList; Import java.util.list; Import org.neo4j.graphdb. *; Import org.neo4j.server.plugins *; Import org.neo4j.graphalgo *; // import org.neo4j.tooling.GlobalGraphOperations; @ Description (expansion of Neo4j server to achieve all nodes or relationships) Public class GetPaths expanded the server plugin {@ name ("breadth_first_paths") @ Description ("first wide travel traversal of specific node"). @plugin target (node ​​class) public shaky & lt; Path & gt; GetPaths (@ Source Node Graphidi) {ArrayList & lt; Path & gt; Path = new arreelist & lt; & Gt; (); Return path; }} curl return {"extension": {"GetAll": {"get_all_nodes": "http: // localhost: 7474 / db / ext / GetAll / graphdb / get_all_nodes "} ...}, But when I Node.class both conditions GraphDatabaseService I change with Class ,...

java - Can't add JTree to JPanel of a JInternalFrame -

Image
There are two panels in my JInternalframe. I want to add TopPanel to Jtree to nominate another. But I can not add Jaitari to the top of the panel. Please help me in this piece of code: DefaultMutableTreeNode root = new DefaultMutableTreeNode ("deck"); DefaultMutableTreeNode Item Clubs = New DefaultMutableTreeNode ("Club"); AddAllCard (itemClubs); Root.add (itemClubs); DefaultMutableTreeNode item = New DefaultMutableTreeNode ("Diamonds"); AddAllCard (itemDiamonds); Root.add (itemDiamonds); DefaultMutableTreeNode Itemspads = New DefaultMutableTreeNode ("Spades"); AddAllCard (itemSpades); Root.add (itemSpades); DefaultMutableTreeNode item increases = new DefaultMutableTreeNode ("heart"); AddAllCard (itemHearts); Root.add (itemHearts); Default Trimodel Tree Model = New DefaultTreeModel (Route); Tree = new jetty (tree modal); ScrollPane = new JScrollPane (tree); // scrollPane.setViewportView (tree); . ScrollPane.getViewport () add (tr...

ajax - How to crawl asynchronized content by Java? -

I need to crawl a site by java, while one stream of content is loaded by ajax. Does anyone have the experience of finding that material? Thank you! You can use it. This is an uninterrupted browser. For example, with the html unit you can press the button on the page, wait for the content loaded by AJAX and catch it.

java - How to configure the path of files inside a folder in Struts config file -

I created a folder named Customer and I have put the following JSP files in. edit .jsp , editsuccess.jsp . My String Config & Lt; / Action & gt; This has the edit.jsp input page and the output page for the editsuccess.jsp controller (the entire one) the auditrator and the controller has a path edit . Here I am JSP & lt; Form action = "edit.do" method = "post" & gt; I am calling the servlet in front of the front. When I submit the form it shows the following error HTTP status 404 - Invalid path requested I tried some possible ways to change but still I could not be able to fix it. If you are using html form tags, then you should properly map the action. & lt; Form action = "$ {pageContext.request.contextpath} /edit.do" method = "post" & gt; or use html taglib & lt;% @ taglib prefix = "html" uri = "http://struts.apache.org / Tags- Html "%" & ...

arrays - how to display the date between the from and to range of date in php -

मैं 28-10-2014 से 01 तक की एक श्रेणी की तारीख कैसे दिखाऊं? -11-2014 ? 28-10-2014 29-10-2014 30-10-2014 31-10-2014 01-11-2014 इसे आज़माएं: & lt;? Php $ begin = नया दिनांकटाइम ( '28 -10-2014 '); $ अंत = नया दिनांक समय ('01 -11-2014 '); $ Daterange = नया दिनांक पीरियड ($ शुरू, नया दिनांक अंतर ('पी 1 डी'), $ अंत); विदेशी मुद्रा (डॉलर की तारीख $ $) {echo $ date- & gt; प्रारूप ("एम-डी-वाई"); }? & Gt;

javascript - jQuery UI dialog reloads the page when you click on close button. What is wrong? -

I have two buttons in my dialog if I click on the close button, the dialog box closes and the page reloads goes. How to turn off the dialog without reloading the page? My code: add_bankday.dialog ({autoOpen: wrong, width: 400, button: [id: 'submit', text: & lt ;? php echo json_encode ('add' );; & Gt;, click: function (event) {if ($ ('$ password'). Val ()! = Calendar.resource.password) {$ ('# error'). Text (& lt; ? Php echo json_encode ('wrong password');;> CSS ('visibility', 'visible'); return;} $ .ajax ({type: 'POST', url: 'ajax.php', async: False, data: {Op: 'add_bankday', day: $ ('# new_bank_day'). Val (), password: $ ('# ab_password'). Val ()}, success: function (res) {}}) ;}}, {Id: 'bank_close', text: & lt ;? php echo json_encode ('closed');? & Gt ;, click on: function () {$ ('# new_bank_d ('');. Val ('');. $ ('# Add_ban...

jquery - HOW TO Call field from database if the value same name with form of checkbox in php code -

There is a problem. I have many checkboxes and now the value of the checkbox has been successfully entered in the database. Here is my checkbox form: & lt; Form method = "post" action = "" & gt; & Lt; Div align = "left" & gt; & Lt; P align = "left" & gt; & Lt; Input type = "checkbox" name = "bmk 81a" value = "bmk 81a" & gt; 1. BMK81A & lt; Br> & Lt; Input type = "checkbox" name = "BMK81" value = "BMK 81" & gt; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; 2. BMK81 & lt; Br> & Lt; Input type = "checkbox" name = "DL3" value = "DL3" & gt; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; 3. JPN-DL-3 / JPN-DL-4 & lt; Br> & Lt; Input type = "checkbox" name = "DL2" value = "DL2" ...

opengl - Find the vertices on the outline of a 3d model -

I have got several materials on the frame attract around a model with a stencil buffer Like However, this time I need to find the headlines on the outline to get their coordinates, but there is not a great way to do this. I have once come in a method that can solve my problem for simple models like cube or shells. This triangle suggests to examine two triangles that share the triangle, if the normal of both the triangles points in the direction of the camera in the opposite directions, they share the share from the edge, The above method fields Or works like a simple model like a cube, but not for complex models, because it can lift those edges that also take inside the framework from the camera's view. In the conclusion, my purpose is to find the coordinates of the corner on the outline, for example, on the red line in the image which you can find. BTW, I'm doing this using Ogre

wso2 - Default endpoint in esb -

I am using wso2esb 4.7.0 and wso2dss 3.0.0. When I started with these servers, it was less loaded on the server because they are not in a small number of services. But now the situation changes. They have no service on the server and each proxy has the end point of the special address of DSS. After calling the end point of this address, he navigates to that endpoint and receives information and gives feedback. This is the general scenario of all services. The number of services increases day by day and because of the slow loading of the server, this is the reason why I want to make a special default endpoint where I can easily call the service. Address Endpoint and no need to call everyone. Is this possible? How can I apply it? For balance balancing, I have used the Amazon AWS Lowestyl Load Balancer. The question is unclear whether your endpoint for different proxy services is different or not? I mean, all different end points are called the same dataset or different if they...

Why git doesn't ask how to merge some of the files? -

I am trying to merge the two branches. Suppose I have three files in three, A, B and C, A, B and C. And in the branch 'new' I have A and C and I have removed B. C is different from A and AC in 'Master' Now I am merging 'Master' with 'new' and what GIT does, it changes with the 'new' version of 'C' instead of 'Master' version of C, It keeps B (which I really want to delete) and asks me to manually merge it. What is happening? I thought it would ask me about all the changes! But! If I compare the two branches, then it shows all the differences correctly. As you are saying that Geeta is working to work, as you are saying. Let's say I have a b and c files with your content, following the following commands: You can test: git init git ABC GIT commit - Add "initial commitment" to then create branch git checkout-b branch 1 & lt; Edit A, C & gt; Then merge the branch from 1st to Thurs G...

log4j - Output log of single class to file in Grails -

I am trying to redirect the log4j output of a package to a file. My configuration is as follows: log4j = {appenders {console name: 'stdout' appender new delhi rolling file adapter (name: 'audit', datepantern: "'.' Yayam-mm-dd ') File name: "$ {userHome} / $ {applicationName}. Log ", layout: pattern (conversion pattern: '% d [% t]% -5p% c {2}% x -% m% n'))} root {error 'stdout'} error 'org.codehaus.groovy. Grails.web.servlet ', // Controller' org.codehaus.groovy.grails.web.pages ', // GSP' org.codehaus.groovy.grails.web .sitemesh ', // layout' org.codehaus.groovy .grails.web.mapping.filter ', // URL Mapping' org.codehaus.groovy.grails.web.mapping ', // URL Mapping' org.codehaus.Groovy.grails.commons ', // core / classlogging' Org.codehaus.groovy.grails.plugins ', // plugins' org.codehaus.groovy .grails.orm.hibernate ', // Hibernate integration' org.spring...

C# label and goto -

This is my entire program. Obviously I am starting a new problem I am facing is that if age is zero If there is less then some rows come back, but the user has to ask for a PIN again. :( What can I do to fix this? using system namespace example {class program {static zero main (string [] args) {string name; string city ; Int age; int pin; // \ n is used for the line-break console. Type ("Enter your name:"); name = console.ReadLine (); console. Enter: "); city = console.ReadLine (); Age: Console. (" Enter \ N your age: "); age = int 32.exe (console.readline ()); console (" \ n Your p Enter: "); pin = int 32.perse (console) .ReadLine (); if (age> lie> 0> age> = 110) {goto age;} // printing message console / formatting output Consol E.WriteLine ("=============="); console.print line ("your full address:"); Console.WriteLine ("========== Console = brightness ("name = {0}", name); console.light line (...

webserver - 404 Error In AngularJS on a hosted server -

I know that my problem is similar to this one: I understand why there is an error Tutorial, I also followed this, but for a different project I tried to do the same thing and I hosted my website with my website: Can not display the browser content because Can not Do .Json Find Files Do You Know How I Do It Can i fix Thank you very much for your help.

winforms - Is it somewhere documented how the Windows energy profile influences .NET performance? -

While I disabled the winforms control, I had already asked a question about poor performance, where I found out that There was a problem when we got another issue this week to balance the energy profile set up. Our one of our customers NET was complaining about poor performance in the application. I remember my experience with humble control and we asked him to check it. The result: In some scenarios, the application was only two to six times faster, just by balancing the profile for higher performance! This is very strange because this application is a business where the client communicates with one using the Remoting application server application server connects to the Oracle server. You are watching: spend a lot of time with communication needed. First we examined our Oracle questions, then our communication layer and finally the energy profile was the cost of most of the time. This is a huge difference because the laptop was connected to the power supply and is there a doc...

javascript - Very high responsetime after 3 min inactivity Web API -

I have a strange problem in the reproduction and production environment (but not in the god). I is a website that performs some actions on a web API hosted in the same IIS. Typically, a specific post takes it under a second to make a request, but after 3 minutes of inactivity, the same post request 10 -30 seconds. (According to Google Chrome Network tab) The list of requested requests is not the first request for a post request. The request Ajax is used. I found out that the database queries were running slow but SQL Profiler has gone to see if all this is performing well, and it seems that the post request is only delayed. All SQL queries are performed directly, and when this is done, there is nothing for 10-30 seconds. Do you have any idea why the reaction time is too high? The problem is resolved! The problem was that the email was sent using the SMTPClient in the request. The SMTP client is not ASINCC in a web application and therefore had to be sent before...

oracle - SQL attribute variant within the same statement -

Having the following statement gives me 4 columns (location, description, guardian, count) depending on the situation: SELECT KINCIDENT.Location, LOCATIONS DESCRIPTION, LOCHIERARCHY PEPPER, CURRICULAR LOCATION, LOCATION, LOCHIERARCHY WHERE CANCER. Location = LOCATIONS.location and LOCATIONS.location = LOCHIERARCHY.location and Kinder. Status = Cancer by the 'ECCAPR' group. Location, LOCATIONS details, LOCHIERARCHY. Order by guardian; However, I want a 5th column that counts to me, but when I can specify KINCIDENT.status = 'FSAPR' instead, in which situation each counting column takes place ? Do you want conditional aggregation? Select the obvious join s: k.location, l.description, h.parent, SUM (case when using k.status = 'ECCAPR To learn how to do 'THEN 1 ELSE 0 END' join the cnt_ECCAPR, SUM (case when K.State = 'FSAPR' then 1 ELSE 0 END) from cnt_FSAPR to KINDICENT K. k.location = l. Location JOIN LOCHIERARCHY at l.location = h.loc...