All Questions
0
votes
0answers
2 views
Need help new to JS and cant figure out how to change a functions value
So this is my problem I've got this button here
<button onclick="cookieClick(1)">Click Me!</button>
Which gives me 1 cookie when I click on it.
function cookieClick(number){
...
0
votes
0answers
3 views
How stored relations between pages and app hook in django-cms?
I can not find it in pagemodel.py or directly in the database.
0
votes
0answers
3 views
DB API Design: Are External parameters/limits/order bys Harmful?
My company is currently developing a web API with a SQL-like database querying mechanism. The basic idea is that one would POST {query: '*some query*'} to /execute_query on our server and then get ...
0
votes
0answers
3 views
Are database actions initiated from EclipseLink DescriptorEventAdapter.postUpdate method handled within the context of the initiating transaction?
Here's the situation:
I have an API service method using the @Transactional (org.springframework.transaction.annotation.Transactional) annotation.
The service method updates a table.
Our JPA ...
0
votes
0answers
5 views
The remote name could not be resolved: 'smtp.gmail.com'
Hi iam creating a registration page with automatic email verification iam getting this message.
Here is my code below..
protected void RegisterUser(object sender, EventArgs e)
{
int userId = ...
0
votes
0answers
6 views
mysql update without replacing existing data
I need to update a row in my mysql database, but i don't want to replace the data that is already stored in it. example:
select books from storedb where id='Rick';
result of the query: Books = ...
0
votes
0answers
7 views
Jquery Background position y +=1 issue
every 80 ms, i want to add +=1 to div background's Y position.
The issue is that it doesn't work.. It only works if i add +=1 to x pisition...
may you help me?
thanks
<script>
...
0
votes
0answers
3 views
Recorded Macros in Run/Debug configuration
As the title says.
Is it possible to add a macro I have recorded in Run/Debug configuration and in the Before launch configuration?
0
votes
0answers
2 views
SK Game - didBeginContact/didEndContact isn't getting called
I'm making a drag and drop game, and attempting to use physicsBodies to detect contacts between 1 static object and the object being dragged by the user.
I've searched on here for hours, and watched ...
0
votes
0answers
6 views
One to one relation not setting primary key
I have a schema where Table1 had a primary auto increment identity key and Table2 has a primary key with a FK constraint that it equals the Table1 primary key.
When I code the following
new Table1
...
0
votes
0answers
5 views
Find the control of dynamically added partial view span content in JQuery
We have partial view View1 as follows:
@using (Html.BeginCollectionItem)
{
<div id = "partialview-content>
<table >
<tr>
<td>
@Html.TextBoxFor(x=>x.Name, new {id = ...
0
votes
0answers
5 views
Correct way to use spring form
I am trying to switch from html form to spring form so that I can use message properties which I think is a pretty cool feature. But I have encountered error Http 500:
...
0
votes
0answers
5 views
Getting Windows Service To Read Registry HKLM
I've been having a heck of a time trying to get this to work. I wrote both a service and a form application in VB.NET, both of which need to access a registry key to locate a computer that has my ...
0
votes
0answers
4 views
Unsupported Class Version during Maven build in Jenkins
I've seen a few of these questions on here, but none of the solutions/tips seem to be pointing me in the right direction. So I have 3 JDK's installed in the locations of "/opt/java/6", "/opt/java/7", ...
0
votes
0answers
4 views
Phonegap and contact plugin: determining if a contact image is valid
using Phonegap contact plugin a contact photo path is something like
content://com.android.contacts/contacts/XX/photo
doesn't matter if the contact has a photo or not.
Only after render it can ...
0
votes
0answers
12 views
prevent user to go back to the php form after submitting it
I have 2 php forms. If user submit the first form, he should be redirected to the second form.
Now, my problem is that I would like to prevent users from coming back to the first form after ...
0
votes
0answers
2 views
CSS text-align:justify issue specifically on vodafone network
I have an interesting issue where text-align:justify is not working specifically on vodafone network in New Zealand and in Australia on iphone (i have not had other devices to test vodafone network). ...
0
votes
0answers
3 views
Rails Gritter Ajax setup
I'm struggling to get the grittier notification working with ajax, this is what I got so far:
application.html.erb
<%= gflash %>
<%= gflash :js => true %>
request_fr.rb
def post
...
0
votes
0answers
2 views
SSLCipherSuite in .htaccess not taking effect
I am trying to specify SSLCipherSuite in my .htaccess file, but the changes don't seem to take effect. I am running on a shared hosting account, so only have access to .htaccess, and not ...
0
votes
0answers
4 views
OpenShift returns server error when trying to access form entry
I am creating a web based application with python where the user enters a search query and data is returned. I used bottle to provide the web framework for this. Openshift is then used to post online. ...
-2
votes
0answers
20 views
Sequential and Binary search algorithm
I searched google a lot and could not find answer, i am still learning java btw
Example we have array a = (9, 3, 6, 7, 6, 5, 2, 2, 4, 8)
and we are searching for value x = 6
What i need to do is to ...
0
votes
0answers
5 views
Find the appdomain for a MarshalByRef object
I have a marshalled object which originated in another app domain.
Is there a way to get a reference to the app domain where the object was created from the object itself?
//i dont have a ref to ...
-2
votes
0answers
16 views
Caesar cipher in c… help please [on hold]
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
char cant[50];
int main (int argc, char*argv[1])
{
{
if(argc!=2)
{
...
0
votes
1answer
8 views
Mansory has default spaces between elements
my first post on stackoverflow :)
On to the point, im trying to setup a masonry with some images with masonry js http://masonry.desandro.com/ , i do have imagesloaded aswell.
But somehow i end up ...
0
votes
0answers
2 views
Ember-CLI. How do I add extra jquery / javascript file to my application?
Not sure if I'm phrasing the question correctly. I'm pretty new to Ember. I have two .js files that have just some snippets of jQuery and Javascript (ie: orientationbugfix.js )
Where/How do I include ...
-2
votes
0answers
3 views
I want to know the modus operandi of this ٍslide Show There is a picture caption
I want to know the modus operandi of this ٍslide Show
This is a picture caption
http://i.stack.imgur.com/MZ2Oh.png
This is the site which is found in the example
...
1
vote
0answers
7 views
vagrant - .bashrc has correct exports, but variables aren't correct
I didn't write the vagrant file - it was made by a colleague of mine, and I'm not overly familiar with writing them, but based on what they look like, I can understand what it's doing to an extent. ...
0
votes
0answers
2 views
ffmpeg can't stream to remote client
I'm building a simple ffmpeg command line on my laptop to stream from its camera. The command line reads (verbose output at the botton):
host1> ffmpeg -v verbose \
-f dshow \
...
0
votes
0answers
4 views
Accessing files over the network through a script running as NT Authority\System
I'm not sure if I am asking this in the right spot or not, sorry if I am wrong.
I would like to know please, SCCM is currently operational in our school, and we use it to install software across our ...
0
votes
1answer
7 views
Is HTML5-mode URL routing with AngularJS possible when in local-file based apps (with file://)
I appligize if this has already been asked already but I can not find any information about this.
I have an AngularJS application which will be accessed from the hard drive (not from a HTTP server) ...
0
votes
0answers
3 views
Running a grails application on Amazon EC2
I have a Grails application which I run on an Amazon EC2 instance. I usually start this application by using Putty from my windows machine to log into it and change to the application's home directory ...
-4
votes
0answers
8 views
USRP N200/N210 SBX carrier recovery
I have a question about USRP. I am wondering if there is a carrier recovery module in USRP? I did some research and I found that the USRP has PLL and VCO components. But a friend told me such cheap ...
0
votes
0answers
3 views
Signature does not match for AWS using Node.js SDK
I'm unable to get a simple AWS Node.js EC2 example to work. Here's my code:
var AWS = require('aws-sdk');
AWS.config.loadFromPath('./config.json');
new AWS.EC2().describeInstances(function(err, data) ...
0
votes
0answers
4 views
How to design controller spec tests when other objects are required?
I want to test player_links_controller which requires player objects. Using rspec and FactoryGirl, what is the correct approach? I'm seemingly unable to get my objects to persist.
I can get all ...
0
votes
0answers
2 views
Ember-CLI server looking at dist not public
My ember-cli app (0.0.42) is looking at the dist folder and not public for its assets. For example, compass is compiling scss to css but placing it in dist/assets.
Why is this happening, when in ...
0
votes
0answers
5 views
How can I find the encryption/encoding method used on a file given its original version
I have two image files. One is a regular picture [here], while the other is it's foreignly modified counterpart retrieved from a remote server [here]. I have no idea what the server did to this image ...
0
votes
0answers
5 views
Go equivalent to OpenSSL EVP symmetric EVP_aes_256_cbc
I'm writing a Go script that will decrypt some legacy data that is encrypted with EVP_aes_256_cbc and an RSA public key.
In C this would be something like:
key_size = EVP_OpenInit(&ctx, ...
1
vote
0answers
5 views
Is there a way to combine background-size:contain and :cover?
I want to use background-size:contain and background-size:cover at the same time. I want to have my background image stretch 100% width x 100% height of the browser window at all times while ...
0
votes
0answers
8 views
SQL Compare pairs of fields and append matches to another field
We have a large database, and have imported old, archived data from an old schema. We have created two queries from the new and old data (A and B) and want to 'flag' the fields that have a different ...
0
votes
0answers
10 views
Redirect based on Mac Address
I need a script that will check a Mac Address list every 15 mins, if a new Mac is found on the network it will add this Mac to the list and send this new user to a defined web page until it click a ...
-1
votes
0answers
5 views
Magento only displays header
I installed Magento 1.9.0.1 on 2 separate development servers and on both servers uploaded 100K products via Magmi. Both servers after a lengthy amount of time, only displays the header on the front ...
0
votes
0answers
6 views
Using Ninject with ServiceLocater pattern - good or bad
I'm about to get used to Ninject. I understand the principles of Dependency Injection and I know how to use Ninject. But I'm a little confused right now. The opinions drift apart when it comes to the ...
0
votes
0answers
12 views
How to read stdout from a forked subprocess when the latter does not flush its stdout?
Before the below code I do:
create 1 pipe to read output from forked process
Fork()
Execv() a python script
Then in the parent process I do:
//create File to read from and set pipes to ...
0
votes
0answers
4 views
AES Length Limitation?
I wrote a small aes irc client application.
However it seems that it's only capable of decoding short messages.
about 21 characters I believe (counting spaces).
Is there a way around this?
Code I ...
0
votes
0answers
4 views
libgdx spritebatch not rendering textures
I'm working on a top down RPG game using LibGDX, and am creating an Ortho.. camera for my game. However in doing so, only my tile textures render now. This is how the render code looks:
Camera ...
0
votes
0answers
5 views
Fragment “path/file.jsp” was not found at expected path “path/file.jsp”
There is a similar question to this but it does not have the same focus and is 5 years old.
I have an error with a few of my includes in my .jsp files that reference things in my WEB-INF folder. The ...
-1
votes
0answers
5 views
Android image capture and imageview
I am trying to save an image capture to internal app memory and show the image in an imageview on the activity. I am fairly new to android, and I know people will not want to give me an easy answer. ...
0
votes
0answers
17 views
jQuery (.stop) reverse method
I have a game that is using a collision system.
When the player starts to mine at a rock using the letter q to mine, I use .stop to stop him. unfortunately that keeps him stopped, I was wondering if ...
0
votes
0answers
5 views
How to find only links in a textbox using Jquery
I am trying to write some code that will search a textbox which a user can type in and remove any text that is not contained with in a link/a href tag.
For example:
$("#ugc").focusout(function() {
...
0
votes
0answers
5 views
match <U+FEFF> in Java
I am trying to use Java find those lines in a file that start with . My regular expression '^\\ufeff{2}.*' doesn't match anything, even though I can see lines with the specified format. How can I ...