All Questions
0
votes
0answers
5 views
android convert unix time to utc date
I am a little confused with the unix time stamp conversion to java.util.Date involving the time zones.
I have a unix time stamp that is "1367832568". it is a UTC date (Mon May 06 17:29:28 GMT+00:00 ...
0
votes
0answers
4 views
Connection refused when starting Solr with external Zookeeper
I have setup 3 servers with Amazon EC2, and have each server with the following Zookeeper-config.
tickTime=2000
initLimit=10
syncLimit=5
clientPort=2181
server.1=server1address:2888:3888
...
0
votes
0answers
4 views
syntax error, unexpected tIDENTIFIER, expecting ';' or '\n'
I just copy&paste code from tutorial in my file models/post.rb
class Post < ActiveRecord::Base
attr_accessible :content, :name, :title
validates :name, :presence => true
validates ...
0
votes
0answers
10 views
sorting higher and lower values in a vector
I got a vector that contains 4 elements who are not sorted, the vector looks like this :
vector<positionInfo> objects
where positionInfo is a struct :
struct positionInfo
{
int X_pos;
...
0
votes
0answers
3 views
Implementing Satellite Menu for Android android.view.InflateException: Binary XML file line #9
i'm try to implement Satellite Menu for Android and receive this error on locat :
Android android.view.InflateException: Binary XML file line #9: Error inflating class ...
0
votes
0answers
10 views
Inheritance program compiles but does not run
/--------------------------------------------------------------------------------------- For some reason the below code compiles but does not run program breaks when run any help would be appreciated.
...
0
votes
0answers
4 views
Upscaling big images
I have created live wallpaper recently. It does displays two images next to each other. Each image does take half of width of screen. When moving the screens (moving to sides on home screen) images ...
0
votes
0answers
2 views
Giant file full of event handlers! How to organize a large jQuery file in an AJAX web app?
I've made an AJAX-heavy web application and included jQuery as a library to help facilitate DOM manipulation and AJAX requests, etc. Here is the problem:
My JavaScript file is a giant collection of ...
0
votes
0answers
3 views
Drupal Like / Dislike Button
I need to like AND to dislike contenttyps, but the total likes should be displayed as Likes - Dislikes. I tried to use the "flag" module and created two different flags (one for likes, one for ...
0
votes
0answers
3 views
center a div with html2pdf
I have the following code:
$html2pdf = new HTML2PDF('P', 'A4', 'en');
$html2pdf->setDefaultFont('Arial');
$html2pdf->writeHTML(utf8_encode($this->renderPartial('portlet', ...
0
votes
0answers
3 views
Using Python to build Windows Phone 8 applications?
I've some stuff written in Python. I would like to implement the code as an app on WP8 platform. Any idea on how I can go about compiling Python for WP8?
I tried Googling, but that turned my brain ...
0
votes
0answers
4 views
MonkeyRunner doesn't take effect
I want to use monkeyrunner to test my MainActivity,and I have edit a python file like below:
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
device = ...
0
votes
0answers
5 views
Picture uploading in WordPress work but show error message
I installed a fresh latest version of Wordpress without any plugins,
I trying to upload an image from Posts>Add news>Add Media .
After select file and waiting for uploading I will get this error ...
0
votes
0answers
9 views
How to crawl a website/extract data into database C# and SQLSERVER
I want to build an single cumulative webapp where users of my organization can use only one site instead of more than ten sites for different purposes.My organization have different sites for ...
0
votes
0answers
2 views
prompt payment facebook game application: The application can not accept payment
Recently created facebook game application,
payment Tip title: application can not accept payments ,
message: Your application is now being used does not accept payment. The transaction is charged ...
0
votes
0answers
7 views
How I fix this in my program?
I do not understand why my program was not able to run. This was the error thing that popped up. How do I fix this problem?
System.InvalidOperationException was unhandled
Message="An error ...
0
votes
0answers
2 views
TestFlight: invalid app token?
I've been using TF for a long time, until recently when I upload the build, I got:
I'm not sure what the problem is, I did have that [TestFlight takeOff:@"xxx"] code in the app delegate. Did I miss ...
1
vote
0answers
5 views
How to build this layout using GridView?
I would like to build a layout as shown below using GridView though I am aware that it can be done using GridLayout & ScrollView but I need to use adapter because I do kind of lazy loading an ...
0
votes
1answer
11 views
what platform/database should be used?
I am planning to develop a website. The website will have 50k-100k users in near future, so good performance is important. Data flow from/to server will be average. Apart from this, I need to have ...
0
votes
0answers
3 views
Active Android wifi scan
As far as I understood from the previous posts, time for completing an active wifi scan (startScanActive()) should be around 0.7 s but on my phone it remains the same as for a passive scan (startScan ...
0
votes
0answers
2 views
In YouTube's API 3.0 is total channel viewCount deprecated?
Until a week ago, the viewCount field would return the channel's total upload views (equal to the totalUploadViews field in YouTube's API 2.0). Now however, the viewCount field has started returning ...
0
votes
0answers
4 views
What do I need to know for Developing App Engine Connected Android Project?
I am new to Android. I want to create an App, which interacts with the Server. I chose Google App Engine as the backend for this. I just wanted to know, What must I know before starting the ...
0
votes
0answers
4 views
PrimFacse Linkbutton doesn't work inside dataGrid
Good morning everybody,
I have a problem related to the primfaces controls.
I put a commandLink inside dataGrid, but the commandLink didn't get in the action method.
I don't why. So can you help me in ...
0
votes
1answer
11 views
ASP.NET Forms Authentication, allowing a user to access specific pages only with username
i AM WORKING WITH ASP.NET 4.5 web forms:
I need users to be able to Reset their Password via email (still working on that), Security Question/Answer and using the Forget Password method.
The problem ...
0
votes
0answers
4 views
User-defined message not working
Brief summary of what i am trying to accomplish - I am 'attempting' to write code that will allow an operator to test 4 devices simultaneously using winapi threads. The code for the testing of the ...
0
votes
0answers
4 views
Hierarchical Paging
Suppose I have a system with 32-bit logical and 16-bit physical address spaces, and the page size is 512 bytes. For simplicity, ignore the valid/invalid bits in the page table.
How many sections ...
0
votes
0answers
16 views
Reform original tables with divs
Here the user update an html file with multiple tables, it's structure could be:
<table>
<tr>
<td>EEE</td>
<td>EEE</td>
<td>EEE</td>
...
0
votes
0answers
7 views
Showing the lastest changes of each subdirectory in git
In github if you open a repository you will see a page showing the lastest commit and time of each subdirectory and file.
Can I do this by command line in git?
0
votes
0answers
2 views
behavior vs operation in UML
To the best of my knowledge the operation is resides in the second compartment of class at class diagram.
1)What about Behavior?
2)What is the differences between Behavior and operation in unified ...
0
votes
0answers
4 views
Show results in a datagridview
I have results from 5 methodes . I want to sort results from each methods and then show them in 5 column in datagridview.
Can U help me ?
0
votes
2answers
20 views
best usage of var at loops
I often endup doing something like this:
var IDs = getArrayOfIDs();
IDs.forEach(function(ID){
var object = myObjects[ID];
// do stuff with object
});
As far as my understanding reaches, ...
0
votes
0answers
6 views
How to show text at the center of a TextBlock without changing its width?
I was thinking is there any way to show the texts at the center of a TextBlock without changing its width?
I've already tried this:
<TextBlock HorizontalAlignment="Center"></TextBlock>
...
0
votes
2answers
5 views
How to generate a color based on an alphanumeric string using Ruby?
I want something like "hey there" to turn into, for example, #316583.
I want a string of any length to be "boiled down" so to speak to a hex color. I'm at loss even where to start.
I was thinking, ...
0
votes
0answers
3 views
nodeJS jake file Can't find variable: desc
I have a simple hello world jake file, which gives an error: ReferenceError: Can't find variable: desc
desc('This is an asynchronous task.');
task('asynchronous', [], function () {
...
0
votes
0answers
7 views
Starting a loader from the adapter
I have a listview on which I show the data that is drawn from the sqlite database. Below is my code.
MainActivity class in MainActivity file:
public class MainActivity extends FragmentActivity ...
0
votes
0answers
15 views
display php shell script not in one row
i have a php script that connect to a unix server and runs a shell script with an agument that the script gets from an html form.
when i run this in cli the output is ok but when run via web form the ...
0
votes
0answers
10 views
Show comments and parent comments
I'm having trouble showing comments.
This is my table structure:
In my ViewModel:
// Comments
public ICollection<comments> Comments { get; set; }
// CommentText
public string _CommentText{ ...
0
votes
0answers
2 views
Error while rendering action from another controller
In my todo list app , I have the following code in my ListsController:
def create
@list= current_user.lists.build(params[:list])
if @list.save
flash[:notice]= "New List created"
...
0
votes
0answers
4 views
Minimal Proguard configuration to remove Logging and Assertions
It looks like Proguard does not work very well with my project as no matter how I use it it breaks something.
But basically my intention for using ProGuard is only to remove Logging and Assertions ...
0
votes
0answers
2 views
Writing large data in access data base using vb6 code
I have large data in excel want to read it and store it in database.
I am able to create database and create table , but not able to insert large data in access.
I am having 1000 row and 5 columns in ...
0
votes
0answers
7 views
Android imageview auto resize when the container move outside of view
Look at the screenshot 1
http://i.imgur.com/yKnfTOH.png
The X icon still fine. And look at the screenshot 2 when the X icon's container move to outside of view
http://i.imgur.com/jWUGsXL.png
How ...
0
votes
0answers
4 views
Rails 4 uninitialized constant for module
In a new rails 4 app I anm getting an unintialized constant error for a module. The module is named ProcessBill and is located in lib/process_bill.rb
console error:
ActionController::RoutingError ...
0
votes
0answers
2 views
TabControl with Regions PRISM
I am Creating a Shell.XAML which houses only a Tabcontrol..
I am trying to create new tabs on a button click event.... With the code that i have written till now I am able to create new tabs on a ...
0
votes
0answers
2 views
How could I make as the following in joomla
I have a section Blog , and different categories Not Ranjha Enough? , Murree During the Raj and so on , and the articles as shown below:
But what should I manage this with the module, Should I do ...
0
votes
0answers
2 views
Articles that explains the sample face detection based tracking on Android - opencv
Can anyone show me or post a link that explains the Open cv - Android sample of Face detection on Opencv4Android sdk. It could be any documentation , blog or article that can elaborate how face ...
0
votes
1answer
11 views
htaccess To Work For Slash and No Slash
I have a website, say: example.com and on it they have blogs, so it would be something like, example.com/?page=blog&slug=this-is-a-blog
I'm using htaccess to change it from that, to ...
0
votes
1answer
12 views
Conjugate transpose in Matlab
In the legacy Matlab code that I need to translate to C I found the following string:
x=fminsearch(@pmveqf,[30 30]',[],pm);
Can somebody please explain the meaning of
[30 30]'
in Matlab?
I know ...
0
votes
0answers
7 views
How to in Visual C++ have a simple timer for precise execution seconds elapsed display
I use "time.h" in my program for have the execution time elapsed from a point to another point of code:
#include <time.h>
...
//clock
clock_t avvio;
clock_t fine;
...
0
votes
0answers
15 views
launcher a crash app make my app crash too
i'm writing a apps list application show all your apps,when i launcher apps,if this app crashed my app crashed too,how can i fix it?
i don't konw how to do it?my code start app as blow,anthing i ...
0
votes
1answer
5 views
Buying and using themes from themeforest
if I will buy any theme from themeforest I will definitely need for some application description: typography, scafolding, styles description and so on.
The problem is that I don't see if I will have ...