All Questions
0
votes
0answers
4 views
invoke classes with Class.forName
I'm following a tutorial, and I face an error; according to the tutorial the code below must work, and invoke the activity StartingPoint, however, it doesn't.
I simplified the code, and just invoke ...
0
votes
0answers
7 views
why does the this single and double quote php snippet is not working as the way we expected?
i have a php snippet and that has some single quote and double quote issue and i tried various combination but no use even use the escape sequence but still not Getting It . Here is my code
echo ...
0
votes
0answers
4 views
Direct chart plotting Pandas DataFrame columns to Xlsxwriter in a loop
I am looking for an efficient way to print multiple Pandas DataFrame plots directly to Excel using xlsxwriter without the need to save the plot to file each time.
I have my DataFrame generated and I ...
0
votes
0answers
2 views
Are OpenCV matrix operations faster than simple for loop iterations?
I want to understand if I should prefer to use the matrix operations defined for the cv::Mat class of OpenCV or if their computational time is the same of iterating with for loop on array of doubles.
0
votes
0answers
3 views
Combine more then one video and play side by side
I need to generate video file with iphone SDK that looks like a wall of few smaller videos. Did somebody could help me with advice how to implement this? assume that I have 4 video and wand to create ...
0
votes
0answers
4 views
AngularJS provider return dynamic $get
I am wondering if it is possible or even wanted to have a provider return variables / functions dynamically?
I have been creating a plnkr here.
What I basically trying to do is instead of returning ...
0
votes
0answers
5 views
MongoDB Correct Schema for aggregated data
I have a big collection that holds lots of stats, since I want to generate reports, I am running a daily cron which aggregates data from the main collection to a smaller one. the thing is: what is the ...
0
votes
0answers
3 views
Opportunity Field Dependency
in my code below the field dependency doesn't work.
I read here https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_dependent_picklists.htm that should work. The ...
0
votes
0answers
2 views
Android Studio: How can I add an image in the drawable/res folder?
I tried to copy and paste .jpg file to the drawable folder but this errors:
E:\Projects\QuizApp\MyApplication\app\build\generated\source\r\debug\com\example\androbo\quizapp\R.java
Error:(1452, 32) ...
0
votes
0answers
2 views
ExtJs 4 : hide/show grid columns with grid that uses ArrayStore
ExtJs 4 :
How can I dynamically show and hide columns of a grid that is using an ArrayStore as its store?
I have found this solution
ExtJs 4: How do I hide/show grid columns on the fly?
I know the ...
-1
votes
0answers
14 views
Python 2 vs Python 3: 2015 usage
Is Python 2 still the 800 pound gorilla in the room? Is Python 2 being used more in 2015 despite Python 3's release back in late 2008? Is there any official data regarding language use of Python 2 or ...
0
votes
0answers
3 views
Java Graphics fillRect only called once in for loop
I have a problem drawing 5 rectangles on my JFrame.
In Spielfeld.java i call regNewBodyPart 5 times in a for loop:
private void regDefaultSnake(){
int s = 5;
int x = currHeadX;
int y = ...
-1
votes
0answers
5 views
matplotlib figure closing order
I use matplotlib to plot multiple graphs, each in a separate figure window. When I close the figures, starting with the first figure window, my python script crashes upon closing the last figure ...
0
votes
0answers
4 views
Mahapps Metro change BaseMetroDialog controltemplate
I would like to change the base template of the mahapps metro dialogs (or create a new dialog type), because i would like to show them in a narrow login window. Right now almost all the second words ...
-1
votes
0answers
5 views
Wordpress password protected pages - allow more than one password
I would like to password protect a page on my blog. Wordpress allows me to give one single password to each protected page. Is there a way to create more than one valid password to access that page?
0
votes
0answers
2 views
Umbraco 4.5.2 on Windows Server 2012 R2 and images from a virtual directory
I have an old Umbraco website (4.5.2) running on Windows 2008 R2. This website gets its images from a virtual directory in IIS. The virtual directory maps to another computer running Windows Server ...
0
votes
0answers
2 views
how and where can i use digital signature in my Google Api request
I am using Google map api v3 for work.
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3&client=<clientID>&sensor=<SENSOR>></script>
...
0
votes
0answers
9 views
java.util.NoSuchElementException (Runtime error)
When I submit the following code to codeforces.com (http://codeforces.com/problemset/problem/3/A):
import java.util.Scanner;
public class A3 {
public static void main(String[] args) {
Scanner ...
0
votes
1answer
6 views
Big-O insert for 2 dimensional array
If i have N x N 2 dimensional array and the name is a.
int a[N][N];
when i Insert any value in any array
for example, a[N-1][N-1]=1 how much time does it take?
O(N^2) or O(1)?
0
votes
0answers
17 views
Catch exceptions from dynamically loaded assembly
I have a requirement to launch a dialog which is part of an existing application installed on a client machine. I am loading the necessary assembly dynamically to launch the dialog in my application, ...
0
votes
0answers
7 views
NSUnknownKeyException ios Objective C
I have created a Slide drawer for my ios app.. The slide drawer working perfectly... I have a few buttons and a Textbox in the Slide drawer... The problem is whenever i try to add reference to the ...
0
votes
0answers
3 views
Updating Support Dependencies In Android Studio When Updating targetSdkVersion
I had originally crated my project in Eclipse compiled for target sdk 19. When I imported into Android Studio, the build.gradle file was created with targetSdkVersion 19 and compile ...
0
votes
1answer
4 views
Merge two sql query results into one result
I have query like below:
select count(*) as AppleSupports from VendorItemPricing where VendorName = 'Apple'
select count(*) as HpSupports from VendorItemPricing where VendorName = 'HP'
Above ...
0
votes
0answers
3 views
How to programmatically set Locale and affecting <spring:message>
I'm using LocaleChangeInterceptor to manage languages on Spring.
<bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
<property name="paramName" value="lang" ...
0
votes
0answers
9 views
How do chain commands in Scala interpreter?
In windows batch, you chain commands with && operator. How do you do the same in scala interpreter? It looks stupid that I need :load file and call import mainobj._ after every load. ...
0
votes
0answers
5 views
Unable to include servlet response by using requestDispathser
Index.jsp
<form method="post" action="serv">
Enter Latest Reading <input type="text" name="t1"> <br>
Enter Previous Reading <input type="text" name="t2"> <br>
...
0
votes
1answer
10 views
Is it good practise to use angular.element(“[ng-controller=”someCtrl“]”).scope()
Is it good practise to use angular.element("ng-controller="someCtrl"]").scope() instead of using factory to handle data flow between controllers using dependency injection. The problem here is I want ...
0
votes
0answers
10 views
File replace confirmation in FileSaver.js
I'm using FileSaver.js library to save a file on client side, without interacting with the server.
However, on saving the same file again, I'm not getting a confirmation dialog to replace the ...
0
votes
0answers
2 views
how to set Intensity for CIFilter CIColorCube
all
I use CIFilter to filte an image with CIColorCube, i found 2 keys can be set:
inputCubeData okay
inputCubeDimension okay
inputIntensity invalid
the question is:
how to set ...
0
votes
0answers
7 views
How to recreate a destroyed fragment in Android?
I have got a master detail flow for tablets in my android application. I mainly have got the three columns:
navigation
master
detail
You can see this in my layout xml:
<?xml version="1.0" ...
-2
votes
1answer
23 views
How to add text to a particular html element using php or jquery?
I have a loginin page login.php. When user clicks submit button it goes to another page loginprocess.php and checks whether user is valid or not. if user is valid then it again displays the same form ...
0
votes
0answers
4 views
How to CURL via OS X Terminal while POSTing a string and a JSON array? It currently says my POST fields are empty or blank
I've researched this and I still can't quite get it right as it says my POST fields are not set or empty. So at a guess this would be a syntax problem?
I have two fields I'm trying to POST, one ...
-1
votes
0answers
5 views
NAT hole punching, browser to python and back
does anyone have any idea how to use smth like WebRTC with python. We have a problem that both devices are behind NAT, one is a Raspberry Pi with python and the other one is browser.
tnx for help
0
votes
2answers
12 views
Access a PHP Object Array
I have a API Request and got the following response
object(Borla\Chikka\Models\Response)[175]
protected 'attributes' =>
array (size=3)
'status' => int 200
'message' => string 'ACCEPTED' ...
-3
votes
0answers
6 views
PL/SQL TRIGGERS--HELP PLEASE
7.1. If inserting or updating a product and the product has multiple sizes [i.e. check product is Pita or
Salad ONLY], then either:
7.1.1. Insert a new row that has the same productTypeNO, productCode ...
0
votes
0answers
8 views
Method Cells object -Worksheet failed
I have a function, which should be run very often:
Public Function FindNumberofhandle(stsmenthandle As String) As Long
Dim r As Long
Dim LastUsedRow As Long
LastUsedRow = ...
0
votes
0answers
2 views
MS Access - recordset not updateable on subform
I have an ms database that uses a tsql backend - in this subform it creates a row in the table no problem but I can't add any text to the text field in the form- Access displays 'Recordset not ...
1
vote
0answers
10 views
A ngularjs - context menu on a table cell
I neet to implement a context menu when I click on a table cell.
I have tried this module which looks nice : https://github.com/ds82/angular-contextmenu
But when I m trying to use it :
<table ...
0
votes
1answer
11 views
Viewmodel Data Binding
Playing around with viewmodels to try and get my head around it, as we came to learn about half way through a project that using Entity Framework models to display the data isn't the way we should be ...
0
votes
0answers
3 views
Draw Edges in X3DOM
In my project, I load x3d files in an inline tag to render them in a web browser with X3DOM.
The x3d files are made via Catia, in which we can see the edges between vertices.
After the export, the ...
0
votes
0answers
6 views
CSV like Parse ( whitespace delimiter and boost )
i want to parse a CSV-like file, line with boost.
There are many different methods like split, tokenise, spirit, regex...
A parsing line could look like: "abc" "def" "hij \"hgfd\" "
and the ...
0
votes
0answers
2 views
Confluence Macro vs Confluence Gadget
In Atlassian Confluence you can develop custom Macro or Gadget. What is the difference between these two? From what I have seen: "Gadgets are generated by scripts that run entirely in the user's web ...
0
votes
0answers
4 views
How to save image to sdcard when using Fresco?
I am using Fresco to download and display Gifs in my app. I want to save the image to sdcard when click it, but i can't figure out how to do it.
final View view = ...
0
votes
0answers
3 views
Restore bookmarks of deleted Chrome user?
accidently i deleted my chrome user on Windows 7. I tried to restore it, copied C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default to C:\Users\USERNAME\AppData\Local\Google\Chrome\User ...
0
votes
0answers
5 views
How to limit the CPU usage of one web hosting in Apache
I know that the application pool of IIS can limit the CPU usage of a website,how to limit the CPU usage of one web hosting in Apache,I tried cpulimit,it only limits the CPU usage of one process which ...
1
vote
1answer
11 views
Remove prefix and suffix of page url in spring MVC
I created controller using spring mvc:
@Controller
public class MyController {
@RequestMapping("/")
public String showHome() {
return “/WEB-INF/pages/home.jsp";
}
@RequestMapping(“/users")
...
0
votes
0answers
4 views
Include null field values in Jersey REST Response
I'm including Instance of Following class in one of my REST Resource Response.
public class GenericResponse<T> implements Serializable {
private String message;
private String ...
0
votes
1answer
14 views
Git for website development with single server
I have a website built on php and MySQL and trying to finally become more organised using git for making a distinction between code that is live and code that is still in test. I am the only developer ...
0
votes
0answers
18 views
iOS7 only returns 'NSInvalidArgumentException', reason: '-[__NSCFString containsString:]:
I am working with a book application where the user will be able to tap on a word and then a part of an audio file will the played for them containing that word and the word will be highlighted. ...
0
votes
0answers
7 views
Parse Push background refresh
I am trying to implement background refresh when a push is received in my app. I read that I need to set content-available: 1
i.e.:
'aps' {
'content-available': 1,
'alert': 'Something new has ...