All Questions
0
votes
0answers
2 views
Abstract base class manipulating variables in Python
I have two classes that share a lot of functionality and I would like to move that functionality into abstract class they will inherit from. Few of that functions manipulate instance variables in this ...
0
votes
0answers
3 views
Need tool or component that can be used to import the contact details from gmail, yahoo, outlooh, hotmail etc
Is there any tool or component that can be used to import the contact details from gmail, yahoo, outlooh, hotmail etc? and can be consumed in C# application
0
votes
0answers
2 views
How to search google drive for file with a specific property
I'm using google drive api and trying to search for files that have a property.
Is it possible to do something like this properties has { key='NoteId'}. I just want to find files that have the ...
0
votes
0answers
1 views
Pascal - dubly linket list
Morning,
may i ask for little advice ?
im trying compile Dubly linket list but i have one small problem with this part of code :
its a "insert after"
when i insert datas to the list : 1 2 3 4 5 ...
0
votes
0answers
2 views
SQLiteException near “CREATE”
I have multiple tables in one database (token and tweets). The token table works fine and I can insert and update stuff correctly, but my tweets table throws an error (SQLiteException near "CREATE") ...
0
votes
0answers
4 views
Array of pointers to structs
I'm trying to create a simple database
I need to have structs that can be created and added to an array
A list of pointers to each struct that is organized in ascending order based on the element ...
0
votes
0answers
7 views
Error “system” is ambiguous?
Hi i have a simple program, and it works fine, but the system("CLS") and system("pause") have the red lines underneath them, when i move my cursor over them it says "Error "system" is ambiguous". Why ...
0
votes
0answers
2 views
ratchet.js and push.js on app phonegap with backbone routing
I want use a push.js for simulate a native transition on my phonegap application.
I use backbone.js, zepto.js, ratchet.js, push.js no working when i change page.
main.js:
require.config({
...
0
votes
0answers
2 views
one-to-one joined table cascade deletion
I have a cascade deletion issue with a unidirectional one-to-one association on a join table. For example:
The xml declaration is:
<class name="Person">
<id name="id" column="personId">
...
0
votes
0answers
2 views
Why I can't make separated table copies in Lua?
In a file I do a code like this:
Source = {}
Source[1] = { a = 1, b = 2, ... }
in another file, I do the next:
Table = {}
Table[1] = Source[1]
Table[2] = Source[2]
I use this method for ...
0
votes
0answers
8 views
How to clean up div classes of “active” attributes?
I'm brain dead today. Save me, plz.
So, I have a bunch of li's and one of them has "active" appended as a class. Obvz that needs to change onclick.
I want to find the ID of the active tab, before ...
0
votes
0answers
17 views
Efficient ways to sleep?
I am developing a simple C++ application that does some networking. I need it to send UDP packets to another application over the Internet, but in order to prevent any congestion I need to tune the ...
0
votes
0answers
5 views
How to get purchaseToken from an in-app already purchased in android/server?
I have an application where purchase flow is:
User uses MYAPP to purchase a item (inapp purchase)
MYAPP communicates with Google servers to initiate a purchase
Google Server gives a purchaseToken to ...
0
votes
0answers
5 views
How to prevent tree conflicts when I update or commit?
I am moving a lot of files from one folder to a new folder. If anyone commits before I do, I'll probably get a tree conflict. I'm wondering if there's a way to prevent this. It will be much easier ...
-1
votes
0answers
5 views
How to read X86 hit miss cache registers with C
Can you give me any simple example? I know that exist special tools, but I want integrate it in my code.
I want collect some statistics. Also I need see when some bad situation happens.
Best regards,
...
-2
votes
0answers
18 views
how to call a variable in a mysql query where x = 'variable'?
i cant get variable bob to be pulled from database but i can call the variable and print it out??
help? been fighting it for a week and i must b an idiot.
$bob = $recip;
$q2 = mysql_query('select ...
0
votes
0answers
5 views
Browserify and libs that don't export
I have js lib that perfectly loads and works in browser
var foo{
}
(function(){
foo.getSome = function(){
console.log("here you go")
}
})()
I want to use it with browserify. Anytime ...
0
votes
0answers
4 views
Android - custom listview
I'm learning Android and trying to copy the layout used in this tutorial, my adapter is this
public class TestListFrag extends ListFragment {
private static final String TAG = "Test tag";
...
0
votes
0answers
5 views
Add on to the “about” URL protocol - FireFox
If you don't know what I mean about the "about" URL protocol, then type about:, about:startpage, about:config into the address bar, also note that some of these work in chrome too! Now my real ...
0
votes
0answers
6 views
What does <Error>: ImageIO: PNG [5C][30][0D]I: invalid chunk type mean?
i saved an image pulled from image picker into a mysql database, i retrieve the image and try to create a uiimage from it with
[self.currentPicView setImage:[[UIImage alloc] initWithData:[[Person ...
0
votes
1answer
3 views
Location Service in Android
I am developing an emergency application in Android. I would like to get GPS location or network location by default, even though the Location service is OFF...
I figured out the below code would do ...
0
votes
0answers
3 views
Remove all files under a folder Google Cloud Storage
I have hundred files under a folder in Google Cloud Storage.
But, the UI doesn't give me a way to select all files at once.
How can I select all files and delete them at once ?
1
vote
0answers
3 views
Event handlers in Word VBA - MailMergeRecordMerge
I get that VBA in Word has a range of Event Handlers to trigger things when specific events occur in the document, but I cannot for the life of me get any of them to work at all.
I need to update a ...
0
votes
0answers
5 views
Design pattern for a client Server app
We have a client server application in GWT. The user from the client browser will be given options on provided services.
I want to send all request through a single RPC method. This means I will send ...
-1
votes
0answers
6 views
Explain to setuptools how compile C/C++ modules and running SWIG commands
On debian stable, i write a C/C++ code and wrap it with python and swig2.0. All these things compose the python module named "Delaunator".
Compilation of C module is necessary, and have some ...
0
votes
0answers
4 views
Combining two columns in a data frame and creating a new column in an existing data frame in R
I am trying to combine information from multiple data frames. Suppose I have a master data frame called "master" regarding information about a bunch of cars. The Master data frame has ALL IDs ...
0
votes
0answers
3 views
-[UIScrollView zoomToRect:animated:] weird behavior
Can anyone precisely describe the behavior of -[UIScrollView zoomToRect:animated:] ? This method really seems to do some complicated stuff, but Apple's documentation of it is very sparse.
I set up an ...
0
votes
0answers
3 views
R - Linear discriminant analysis variable importance
Using the R MASS package to do a linear discriminant analysis, is there a way to get a measure of variable importance?
Library(MASS)
### import data and do some preprocessing
fit <- lda(cat~., ...
0
votes
0answers
6 views
Generate a list of functions in R
I would like to generate a list of functions in R. Basically, I'd like to generate a list of functions of the form f <- function(x){a*x} where I specify a vector of a values. Is this possible?
...
0
votes
0answers
5 views
UICollectionView with diferent cell sizes
I'm looking for a layout or a subclass of flowLayout that uses every single available space instead of cell wrapping and going to the next line, something like this:
.
Where the smallest cell is ...
0
votes
0answers
3 views
How do i add a ID_INPUT_JOYSTICK=1 at udev rules for joysticks?
I am trying to add an ID_INPUT_JOYSTICK=1 when a joystick is added to my system because it does not recognize this property automatically as it does on the desktop Ubuntu I am using. The target ...
-1
votes
0answers
9 views
How to find the current url of a wikipedia iframe
How do i find the current url of a wikipedia iframe, I'm wondering if theres anyway due to the cross-site scripting issues
0
votes
0answers
4 views
Randomize 2 resource parameters the same way into an array
I have a resource named stream and it has parameters video_id and length. Each video_id has a corresponding length.
I want to create two arrays, one that stores all the video_id's and one that stores ...
0
votes
0answers
2 views
Open Graph approved - but does only work for admins
I submitted my app to facebook and it got approved, i am using open Graph which also is approved. The Open Graph is posting actions to user activity log and the problem is that it's only working for ...
0
votes
0answers
2 views
Upload a .zip file to REST server using AFNetworking fails
From the AFNetworking documentation I get the following code while trying to upload a file in a REST server which with other clients work fine but with my implementation it crashes with Internal ...
0
votes
0answers
5 views
Regex parsing issue
I'm trying to parse a JSON output with regex, from this page: http://forums.zybez.net/runescape-2007-prices/api/nature%20rune
The strings I'm trying to extract are "price":"x", with x being any ...
0
votes
0answers
11 views
C++ scanf %la returns 0
Win7 64-bit
gcc 4.8.2
g++ -Wall
I tried to format my C++ sscanf as defined in Why does scanf() need "%lf" for doubles, when printf() is okay with just "%f"? but the return is x ...
0
votes
0answers
4 views
URL redirect .htaccess - keep query parameters
I have a .htaccess file set up which redirects several URL's - e.g:
RewriteCond %{HTTP_HOST} ^mysite\.com\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com\.au$
RewriteRule ^/?$ ...
0
votes
0answers
10 views
Read more bytes than allocated
I am facing a problem with my ID3v1 metadata reader. When I go to read, say the album of a band, and it exceeds the 30 bytes allocated for it, it cuts off the rest of the title.
...
1
vote
0answers
4 views
How will entity framework detect concurrency conflicts , without using timestmp or rowversion
I am working on an asp.net mvc web application that uses entity framework . I have the following model class inside my asp.net mvc web application:-
public partial class TMSSwitchPort
{
...
0
votes
0answers
2 views
Select2 implementation produces very strange-looking form
What am I doing wrong in my code that makes select2 behave so weirdly below?
1) I want the form to look as it should in the examples here, instead of what I have.
Examples:
...
0
votes
0answers
4 views
Heroku error when precompiling assets
I'm a bit desperate with asset precompilation , Heroku and the new Rails 4 asset pipeline.
I'm trying to push to heroku. It gets correctly pushed, but assets aren't compiled so css is not changed.
...
0
votes
0answers
6 views
Process while waiting for mutex lock
Is there some way to execute a code section while waiting for a mutex to lock?
The only true internal hit to my application's performance is database interaction, and there are times where I need ...
0
votes
1answer
10 views
Strange vim regular expressions behaviour
I am not sure what exactly is going on here but I was trying to remove some data from a file using vim. The data is 6 comma separated vales. I want to remove the last three from every line. I used the ...
-3
votes
1answer
26 views
Smooth looking way to count upwards? [on hold]
I basically want to have a simple function or alike that would count much smoother than adding the amounts would be.
What I mean is for example:
53 + 39
Would just go to 92 instantly, but I'd like ...
0
votes
0answers
7 views
fixed nav links not working on android
So I'm having an interesting problem with a site I'm developing, specifically on an older android device. I have a fixed nav at the top of the page and am using "-webkit-backface-visibility: hidden" ...
0
votes
0answers
5 views
How to use AVAudioTimePitchAlgorithmSpectral?
My app includes an audio player that uses AVAudio to play audio files from the iPod music library. I'd like to add a pitch-shifting feature to the player, and the pitch-shifting libraries I've looked ...
-1
votes
0answers
8 views
wamp server wont let me accsess from other computer even though its configured to do so
So I have been using wamp for awhile. sometime ago after it was port forward and I can access
my website it just stopped working so I checked my wamp httpd.conf file and everything looked ok I then ...
0
votes
2answers
17 views
jQuery scroll detection and if else
I am attempting to make it so that if I scroll past a div or the width of that div the sidebar becomes fixed. As you can see here.
Just scroll down and you will see what I mean. I want the sidebar to ...
0
votes
0answers
9 views
in MVC 4 how to render one of view elements as XML text?
In MVC 4 application I trying to build a standard Details view but one of the field is an XML text and I wanted to leave as such on the page. I spend already a couple of hours trying but the best I ...