unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
A regex not working with grep === Just now I was looking for a regex that will detec string not enclosed in double quotes. I got fabulous answer to that. That worked in javascript. I am actually trying to run it using grep. But it isn't working. Can anyone help me why this regex isn't working Sample string : `"quick" "brown" fox jumps "over" "the" lazy dog` I am trying to run : `echo "quick" "brown" fox jumps "over" "the" lazy dog | grep -e '(?<![\S"])([^"\s]+)(?![\S"])'` It gives no output. How different are linux regexes from normal regexes. How can this be done? Please help. Referer to this link: http://regexr.com?31eg3 for the same
0
[ 2, 21, 7953, 1706, 52, 638, 29, 5604, 306, 800, 3726, 3726, 114, 130, 31, 23, 699, 26, 21, 7953, 1706, 30, 129, 121, 9568, 3724, 52, 12188, 19, 1494, 18901, 9, 31, 330, 21619, 1623, 20, 30, 9, 30, 577, 19, 8247, 8741, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
perl gethostbyname when given IP === What happens if a wrong format IP is given to gethostbyname function in perl? One of our scripts was behaving weird when given a wrong format IP (say 1.1.1). On debugging, found that gethostbyname was returning a value when given 1.1.1 for example..any thoughts on this?... In my opinion, gethostbyname should return undef, right?
0
[ 2, 416, 255, 164, 11694, 779, 7259, 76, 504, 15735, 800, 3726, 3726, 98, 5531, 100, 21, 1389, 2595, 15735, 25, 504, 20, 164, 11694, 779, 7259, 1990, 19, 416, 255, 60, 53, 16, 318, 17505, 23, 44, 13693, 5455, 76, 504, 21, 1389, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use system.out.println when using a servlet === > I want to debug a program by using system.out.println and what to > check the flow and variables value in eclipse while running a JIRA > plugin which is a servlet . > > When I make some changes to the code in eclipse it reflects on the > browser but when I use system.out.println where should i see the > output ? > > Example Code : @RequiresXsrfCheck protected String doExecute() { LOG.info("BulkCloneDetails doExecute start..."); filterUrl = null; cloneSubTasks = false; cloneAttachments = false; deleteAfterClone = false; requestId = null; issues = null; getServerInfoFromPage(); **System.out.println("Print something here");** errorsCollection.put("filterPath", i18n.getText("Remote login failed")); addErrors(errorsCollection); return SUCCESS; }
0
[ 2, 184, 20, 275, 329, 9, 1320, 9, 10299, 16600, 76, 568, 21, 13, 10321, 1336, 800, 3726, 3726, 13, 1, 31, 259, 20, 121, 16254, 21, 625, 34, 568, 329, 9, 1320, 9, 10299, 16600, 17, 98, 20, 13, 1, 2631, 14, 3312, 17, 12157, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why does OpenGL run on some phones but not on others? === I have the following code for my Renderer: package hello.project; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.opengles.GL10; import android.content.Context; import android.opengl.GLSurfaceView.Renderer; import android.opengl.GLU; public class HelloOpenGLES10Renderer implements Renderer { private Square square; private Square2 square2; private Square3 square3; private SquareAccesories squareAcc; private SquareEyes squareEyes; private SquareLips squareLips; private SquarePants squarePants; private SquareShoes squareShoes; private Context context; //public static int w,h; /** Constructor to set the handed over context */ public HelloOpenGLES10Renderer(Context context) { this.square = new Square(); this.square2 = new Square2(); this.square3 = new Square3(); this.squareAcc = new SquareAccesories(); this.squareEyes = new SquareEyes(); this.squareLips = new SquareLips(); this.squarePants = new SquarePants(); this.squareShoes = new SquareShoes(); this.context=context; } public void onDrawFrame(GL10 gl) { if (Project.ifDraw){ Square.loadGLTexture(gl, this.context,Square.getSex()); Square2.loadGLTexture(gl, this.context,Square2.getHair()); Square3.loadGLTexture(gl, this.context,Square3.getDress()); SquareAccesories.loadGLTexture(gl, this.context,SquareAccesories.getAcc()); SquareEyes.loadGLTexture(gl, this.context,SquareEyes.getEyes()); SquareLips.loadGLTexture(gl, this.context,SquareLips.getLips()); SquarePants.loadGLTexture(gl, this.context,SquarePants.getPants()); SquareShoes.loadGLTexture(gl, this.context,SquareShoes.getShoes()); Project.ifDraw=false; } gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); //GLU.gluPerspective(gl, 45.0f, (float)w / (float)h, 0.1f, 100.0f); GLU.gluLookAt(gl, 0, 1, 5, 0f, 0f, 0f, 0f, 1.0f, 0.0f); gl.glColor4f(1.0f, 1.0f, 1.0f, 2.0f); square.draw(gl); square2.draw(gl); square3.draw(gl); squareEyes.draw(gl); squareAcc.draw(gl); squareLips.draw(gl); squareShoes.draw(gl); squarePants.draw(gl); /*// clear Screen and Depth Buffer Square.loadGLTexture(gl, this.context,Square.getSex()); Square2.loadGLTexture(gl, this.context,Square2.getHair()); gl.glColor4f(1.0f, 1.0f, 1.0f, 2.0f); gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); // Reset the Modelview Matrix gl.glLoadIdentity(); // GLU.gluLookAt(gl, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Drawing gl.glTranslatef(0.0f, 0.0f, -5.0f); // move 5 units INTO the screen square.draw(gl); square2.draw(gl);*/ } public void onSurfaceChanged(GL10 gl, int width, int height) { if(height == 0) { //Prevent A Divide By Zero By height = 1; //Making Height Equal One } //w=width; //h=height; //Square.loadGLTexture(gl, this.context,Square.getSex()); //Square2.loadGLTexture(gl, this.context,Square2.getHair()); gl.glViewport(0, 0, width, height); //Reset The Current Viewport gl.glMatrixMode(GL10.GL_PROJECTION); //Select The Projection Matrix gl.glLoadIdentity(); //Reset The Projection Matrix //Calculate The Aspect Ratio Of The Window GLU.gluPerspective(gl, 45.0f, (float)width / (float)height, 0.1f, 100.0f); gl.glMatrixMode(GL10.GL_MODELVIEW); //Select The Modelview Matrix gl.glLoadIdentity(); //Reset The Modelview Matrix } public void onSurfaceCreated(GL10 gl, EGLConfig config) { // Load the texture for the square gl.glEnable(GL10.GL_BLEND); gl.glEnable(GL10.GL_TEXTURE_2D); gl.glShadeModel(GL10.GL_FLAT); //Enable Smooth Shading //gl.glEnable(GL10.GL_ALPHA_TEST); gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); //gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); //Square.loadGLTexture(gl, this.context,Square.getSex()); //Square2.loadGLTexture(gl, this.context,Square2.getHair()); //Square3.loadGLTexture(gl, this.context,Square3.getDress()); //SquareAccesories.loadGLTexture(gl, this.context,SquareAccesories.getAcc()); //SquareEyes.loadGLTexture(gl, this.context,SquareEyes.getEyes()); //SquareLips.loadGLTexture(gl, this.context,SquareLips.getLips()); //SquarePants.loadGLTexture(gl, this.context,SquarePants.getPants()); //SquareShoes.loadGLTexture(gl, this.context,SquareShoes.getShoes()); // gl.glAlphaFunc(GL10.GL_GREATER, 0.5f); gl.glDisable(GL10.GL_DEPTH_TEST); gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); //Black Background gl.glClearDepthf(1.0f); //Depth Buffer Setup gl.glDepthFunc(GL10.GL_NEVER); //The Type Of Depth Testing To Do //Really Nice Perspective Calculations gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); } } On the emulator, it works perfect. I used an Xperia Play for debugging, and also tried it on an HTC xplorer and Galaxy Nexus, and it worked. 2day i tried it on a Samsung Galaxy and an HTC phone but the SurfaceView did not show nothing, it was blank, any ideeas why this could happen?
0
[ 2, 483, 630, 368, 8430, 485, 27, 109, 14830, 47, 52, 27, 654, 60, 800, 3726, 3726, 31, 57, 14, 249, 1797, 26, 51, 16535, 106, 45, 6030, 10975, 9, 21011, 73, 9010, 8247, 396, 9, 22019, 22056, 9, 4278, 2075, 759, 9, 62, 8430, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a way to connect the user to a proxy? JS === Is there a Connect to Proxy function or something in JS? or maybe jQuery? I need the user to connect to the proxy but not by the settings in the browser... Please dont -1 my question without explaining why...
0
[ 2, 25, 80, 21, 161, 20, 6379, 14, 4155, 20, 21, 27188, 60, 487, 18, 800, 3726, 3726, 25, 80, 21, 6379, 20, 27188, 1990, 54, 301, 19, 487, 18, 60, 54, 913, 487, 8190, 93, 60, 31, 376, 14, 4155, 20, 6379, 20, 14, 27188, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Drawing graphs in Android === I'm just developing one of my first android apps and I need to draw a line-graph with several lines, i already did some research but didn't found sth working. need help.
1
[ 2, 3533, 7210, 18, 19, 13005, 800, 3726, 3726, 31, 22, 79, 114, 3561, 53, 16, 51, 64, 13005, 4865, 18, 17, 31, 376, 20, 2003, 21, 293, 8, 9614, 29, 238, 1560, 15, 31, 614, 144, 109, 527, 47, 223, 22, 38, 216, 13, 18, 96, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
$.ajax success function === I have 3 files: **f1.php** <?php echo 'dis'; ?> **f2.js** $.ajax({ url: "scripts/f1.php", success: function (rsp){ // if its not exist if(rsp == "dis"){ $("#sbmt_a").attr("disabled", "disabled"); //Disable Button //return = true; } else{ $("#sbmt_a").removeAttr("disabled"); // return = false; } } }) **p1.php** <?php //include f2.js <form> ... <button id="q" name="q" class="eee">Submit</button> </form> ?> Now if I add in my js file something like `form.submit(function(){` I can use the `$.ajax` code and do whatever I like. **But** is there a way to run the `$.ajax` code **when someone visits my page?** I mean when my page loads/reloads and the echo in f1.php is "dis" the form button becomes disabled.
0
[ 2, 5579, 9, 6881, 7522, 1280, 1990, 800, 3726, 3726, 31, 57, 203, 6488, 45, 13, 1409, 410, 165, 9, 26120, 1409, 13, 1, 60, 26120, 8117, 13, 22, 2906, 22, 73, 13, 60, 1, 13, 1409, 410, 135, 9, 728, 18, 1409, 5579, 9, 6881, 75...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mysql update query with select === This is my mysql query, but it is not working update jos_users set name = (SELECT name FROM jos_users WHERE id = 478) where id =477 can any one please tell how to execute this query? or other possibility? thanks in advance raja
0
[ 2, 51, 18, 22402, 11100, 25597, 29, 5407, 800, 3726, 3726, 48, 25, 51, 51, 18, 22402, 25597, 15, 47, 32, 25, 52, 638, 11100, 13366, 1, 16704, 18, 309, 204, 800, 13, 5, 18, 16964, 204, 37, 13366, 1, 16704, 18, 113, 4924, 800, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding/override one image to another image at specific position? === I want to add an image to another image at specific position either it would be pixels or cm or (x,y). I have to do it by java programming using JAI(Java Advanced Imaging). I googled to get sample code. I got replacing ,adding at the end only.But not at specific position. Any idea is appreciatable. Laxman chowdary
0
[ 2, 4721, 118, 2549, 11891, 53, 1961, 20, 226, 1961, 35, 1903, 649, 60, 800, 3726, 3726, 31, 259, 20, 3547, 40, 1961, 20, 226, 1961, 35, 1903, 649, 694, 32, 83, 44, 18146, 18, 54, 2390, 54, 13, 5, 396, 15, 93, 6, 9, 31, 57, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Validate inside the canvas of Html5? === I am a beginner to the Html5 dev i want to know weather it is possible to validate any event inside the canvas using html5 or not?Could any one suggest me how to validate a drag and drop event inside the canvas itself?
0
[ 2, 7394, 1373, 572, 14, 9696, 16, 13, 15895, 264, 60, 800, 3726, 3726, 31, 589, 21, 26931, 20, 14, 13, 15895, 264, 9664, 31, 259, 20, 143, 2580, 32, 25, 938, 20, 7394, 1373, 186, 807, 572, 14, 9696, 568, 13, 15895, 264, 54, 52...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to fetch only image from a content === hai i have a content like <p><a href="http://haha.yellowandred.in/wp-content/uploads/2012/07/535540_273587499393207_2112055176_n.jpg"><img class="aligncenter size-medium wp-image-9" title="Reasons heals nothing" src="http://haha.yellowandred.in/wp-content/uploads/2012/07/535540_273587499393207_2112055176_n-212x300.jpg" alt="" width="212" height="300" /></a></p> <p>The post <a href="http://haha.yellowandred.in/reasons-heals-nothing/">Reasons heals nothing</a> appeared first on <a href="http://haha.yellowandred.in">haha</a>.</p> from this content i have to fetch only image tag and its properties How to do this? I used preg_match but i cant do what i need so any one help me
3
[ 2, 184, 20, 18312, 104, 1961, 37, 21, 2331, 800, 3726, 3726, 8349, 31, 57, 21, 2331, 101, 13, 1, 306, 1, 58, 746, 14057, 3726, 7, 21127, 6903, 994, 994, 9, 17589, 290, 2095, 9, 108, 118, 13790, 8, 25424, 118, 576, 8294, 18, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get the response stream of browser in java webdriver program === I need to validate the pdf report i need to get the report embeded in html. If i read that url using: File file = new File("url"); or HttpWebConnection.getResponse(); it request the url in saperate session hence cannot get the file. Do ieDriver have something like htmlunit HttpWebConnection.getResponse() or somebody can suggest alternative.
0
[ 2, 184, 20, 164, 14, 1627, 3766, 16, 16495, 19, 8247, 2741, 21752, 625, 800, 3726, 3726, 31, 376, 20, 7394, 1373, 14, 13, 11124, 1330, 31, 376, 20, 164, 14, 1330, 11911, 69, 69, 19, 13, 15895, 9, 100, 31, 1302, 30, 287, 6362, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Better approach for DTOs? === I am developing a simple forum web application using SpringMVC, JPA2. I have created JPA entities like User, Forum, Post etc which reflects the DB table structure. But while displaying the data on UI I need DTOs as I can't always hold the data to be displayed on UI using Entities. For ex: Change Password screen. Here I need to hold Old Pwd, New Password and Confirm New Pwd. But User entity won't have Old/New/Confirm Pwd fields, it just has Password. So I need to create DTOs which are just data carriers between Web and service layers. My question is while creating DTO objects, should I put all the properties in DTO itself or wrap the Entity in DTO and add additional properties needed? Ex: For Edit User Screen, public class UserDTO { private User user; // User is a JPA entity // setters & getters } With this I can pass the underlying User entity to my service layer. But while binding UI properties to DTO I need to associate PropertyEditors. (or) public class UserDTO { private String userId; private String userName; private String password; // setters & getters } With this approach, I need to convert & copy the DTO properties into JPA entities and pass to Service layer. Which approach is better? Or is there any other approach without DTOs altogether?
0
[ 2, 574, 2141, 26, 13, 43, 262, 18, 60, 800, 3726, 3726, 31, 589, 3561, 21, 1935, 5691, 2741, 3010, 568, 1573, 79, 8990, 15, 487, 1060, 135, 9, 31, 57, 679, 487, 1060, 12549, 101, 4155, 15, 5691, 15, 678, 2722, 56, 11967, 14, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Exception-Handling C++ === How do I do this, I have a class called LargeInteger that stores a number of maxmimum 20 digits. I made the constructor LargeInteger::LargeInteger(string number){ init(number); } Now if the number is > LargeInteger::MAX_DIGITS (static const member) i.e 20 i want to not create the object and throw an exception. I created an class LargeIntegerException{ ... }; and did this void init(string number) throw(LargeIntegerException); void LargeInteger::init(string number) throw(LargeIntegerException) { if(number.length > MAX_DIGITS) throw LargeIntegerException(LargeIntegerException::OUT_OF_BOUNDS); else ...... } So now i modified the constructor LargeInteger::LargeInteger(string number) { try {init(number);} catch(LargeIntegerExceptione) {...} } Now I have 2 questions 1.Will the object of this class be created incase an exception is thrown? 2.How to handle it if the above is true?
0
[ 2, 5391, 8, 3203, 802, 272, 20512, 800, 3726, 3726, 184, 107, 31, 107, 48, 15, 31, 57, 21, 718, 227, 370, 6391, 13699, 30, 4134, 21, 234, 16, 2049, 1435, 18535, 434, 19076, 9, 31, 117, 14, 6960, 248, 370, 6391, 13699, 45, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
No port serf found in the index; can't rebuild === I'm trying to install npm port package but when I run the command "sudo port install npm" the bash shows error message below, and repeat the same error infinitely. Warning: No port serf found in the index; can't rebuild ---> Found 0 broken port(s), determining rebuild order ---> Rebuilding in order ---> Scanning binaries for linking errors: 100.0% ---> Found 2 broken file(s), matching files to ports How can I solve this problem? Thanks.
0
[ 2, 90, 1295, 4245, 410, 216, 19, 14, 4348, 73, 92, 22, 38, 16128, 800, 3726, 3726, 31, 22, 79, 749, 20, 16146, 13, 103, 5576, 1295, 6030, 47, 76, 31, 485, 14, 1202, 13, 7, 18, 18601, 1295, 16146, 13, 103, 5576, 7, 14, 13158, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jqGrid not available even though imported properly === I am having a problem getting the jqGrid to be recognized by jQuery. For some reason despite having imported the library <script type="text/javascript" src="js/jquery.jqGrid.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.js"></script> I can verify that the library is imported correctly and I can click on it and see it in Chrome. Any idea why I cannot use the library? When I try JQuery("#table").jqGrid... it doesn't work, nor does it show up as one of the functions available. Any help is really appreciated!
0
[ 2, 487, 1251, 16375, 52, 904, 166, 362, 11808, 7428, 800, 3726, 3726, 31, 589, 452, 21, 1448, 1017, 14, 487, 1251, 16375, 20, 44, 2124, 34, 487, 8190, 93, 9, 26, 109, 1215, 869, 452, 11808, 14, 1248, 13, 1, 8741, 1001, 3726, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
simple_form selected: by name === I have a simple_form collection which contains a list of languages. I want to select 'German' by default, but the selected: option in simple_form requires an id. I could obtain the id of 'German' but would hope that wasn't necessary. = f.association :language, selected: // not sure what to put here This works, but stinks (I will NOT be using such atrocious code): = f.association :language, selected: Language.where("name = 'German'").id I would hope for something like: = f.association :language, selected: { |lan| lan.name == 'German' } Every example I've found during the last hour involves the id. Not one example of how to select via the name.
0
[ 2, 1935, 1, 4190, 1704, 45, 34, 204, 800, 3726, 3726, 31, 57, 21, 1935, 1, 4190, 1206, 56, 1588, 21, 968, 16, 2556, 9, 31, 259, 20, 5407, 13, 22, 4749, 22, 34, 12838, 15, 47, 14, 1704, 45, 4255, 19, 1935, 1, 4190, 4781, 40, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting Django on Shared Host with FastCGI === I know this might be a question often asked, but I tried my best for almost a day to launch my first django website with no results, so please anyone experienced with shared hosting and django to help. Here is any relevant info: python 2.6 installed on the remote machine at $HOME/.local/lib/ flup and django at same place, all is done by setup.py install --user. my django project file structure: $HOME/ projects/django/bw_python/ manage.py bw_python/ __init__.py settings.py urls.py wsgi.py site_main/ django app with urls,models, etc... In $HOME/.bashrc I have the following lines: export PATH=$HOME/.local/bin:$HOME/.local/usr/bin:$PATH export PYTHONPATH=$HOME/projects/django:$HOME/projects/django/bw_python:$HOME/projects/django/bw_python/bw_python:$HOME/projects/django/bw_python/site_main:$PYTHONPATH If I run python interpreter django and flup are working, manage.py runserver works without any errors. Now in the public_html I have the following bw_python.fcgi script: #!/usr/bin/env python import sys, os # Add a custom Python path. sys.path.insert(0, "/home5/bwinnova/.local/lib/python") # Switch to the directory of your project. (Optional.) os.chdir("/home5/bwinnova/projects/django/bw_python") # Set the DJANGO_SETTINGS_MODULE environment variable. os.environ['DJANGO_SETTINGS_MODULE'] = "bw_python.settings" from django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") If I execute ./bw_python.fcgi I get: WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing FastCGI param SERVER_PORT required by WSGI! WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI! Status: 301 MOVED PERMANENTLY Content-Type: text/html; charset=utf-8 Location: http://localhost/home/ The .htaccess: AddHandler fcgid-script .fcgi RewriteEngine On RewriteCond %{REQUEST_URI} !-f RewriteRule ^(.*)$ bw_python.fcgi/$1 [QSA,L] The chmod on both of these files and including the $HOME/projects/django/bw_python is 755. And sorry but from the tutorial I'm stuck here? What is the next step to be done? I always get a 500 server error and on the server error log it is only this: [Fri Jul 27 19:29:14 2012] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. Thanks in advance for any help or guidance from here.
0
[ 2, 2697, 3857, 14541, 27, 2592, 2015, 29, 1512, 150, 2234, 800, 3726, 3726, 31, 143, 48, 530, 44, 21, 1301, 478, 411, 15, 47, 31, 794, 51, 246, 26, 557, 21, 208, 20, 3394, 51, 64, 3857, 14541, 2271, 29, 90, 1736, 15, 86, 2247,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Creating a large Mega Menu with CSS === I am trying to create a mega menu like those at http://rackspace.com. I have tried the tutorials given at some of the other questions about this already asked, but one of them used a lot of images, and one of them didn't work with the version of jQuery they linked to. I would like to keep this all CSS, but if I must I could use some JavaScript. I don't understand how to make complex mega menu's but only the simple drop-down's. If someone could provide me with the code for this I would be very happy. I am learning CSS now and I think this will allow me to sharpen my knowledge as well. Thanks, Scott
0
[ 2, 2936, 21, 370, 5957, 11379, 29, 272, 18, 18, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 5957, 11379, 101, 273, 35, 7775, 6903, 13135, 5582, 9, 960, 9, 31, 57, 794, 14, 29724, 18, 504, 35, 109, 16, 14, 89, 2346, 88, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
sys.path() and PYTHONPATH issues === I've been learning Python, I'm working in 2.7.3, and I'm trying to understand `import` statements. Reading the documentation here: http://docs.python.org/tutorial/modules.html#the-module-search-path says that when you attempt to import a module, the interpreter will first search for one of the built-in modules. Question 1) What is meant by a built-in module? Then, the documentation says that the interpreter searches in the directories listed by sys.path, and that sys.path is initialized from these sources: -the directory containing the input script (or the current directory). -PYTHONPATH (a list of directory names, with the same syntax as the shell variable PATH). -the installation-dependent default. Here is a sample output of a sys.path command from my computer using python in command-line mode: (I deleted a few so that it wouldn't be huge) ['', '/usr/lib/python2.7', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol'] Now, I'm assuming that the '' path refers to the directory containing the 'script', and so I figured the rest of them would be coming from my PYTHONPATH environmental variable. However, when I go to the terminal and type `env`, PYTHONPATH doesn't exist as an environmental variable. I also tried `import os` then `os.environ`, but I get the same output. Question 2) Do I really not have a PYTHONPATH environmental variable? I don't believe I ever specifically defined a PYTHONPATH environmental variable, but I assumed that when I installed new packages they automatically altered that environment variable. If I don't have a PYTHONPATH, how is my sys.path getting populated? If I download new packages, how does Python know where to look for them if I don't have this PYTHONPATH variable? Question 3) How do environment variables work? From what I understand, environment variables are specific to the process for which they are set, however, if I open multiple terminal windows and run `env`, they all display a number of identical variables, for example, PATH. I know there file locations for persistent environment variables, for example /etc/environment, which contains my PATH variable. Is it possible to tell where a persistent environment variable is stored? What is the recommended location for storing new persistent environment variables? How do environment variables actually work with say, the Python interpreter? The Python interpreter looks for PYTHONPATH, but how does it work at the nitty-gritty level?
0
[ 2, 10315, 18, 9, 8353, 5, 6, 17, 20059, 8353, 1549, 800, 3726, 3726, 31, 22, 195, 74, 2477, 20059, 15, 31, 22, 79, 638, 19, 172, 9, 465, 9, 240, 15, 17, 31, 22, 79, 749, 20, 1369, 13, 1, 1660, 1993, 1, 9015, 9, 1876, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
libspotify API: local cache and logout === What will **sp_session_logout** do if local host cache is not defined (both "cache_location" and "settings_location" are configured with empty string)? Will it get suspended as there is no cache available for flushing? Or maybe it's not necessary to call **sp_session_logout** at all before terminating the application because the main purpose of using logout call is to flush cache? Anyway, the reason why I'm trying to disable cache is: I want to send PCM raw data to standard output instead of alsa driver, and then redirect the data to an audio player. If the cache is enabled, the audio player outputs noise when the cache is empty (first-time play), but outputs music when the cache is not empty (not-first-time play). If the cache is disabled, the audio player outputs music properly. It's a good idea to have cache enabled, but I don't understand how this cache stuff would impact the audio output?
0
[ 2, 13, 8326, 18, 4296, 8612, 21, 2159, 45, 375, 16522, 17, 6738, 1320, 800, 3726, 3726, 98, 129, 13, 1409, 3401, 1, 7202, 5991, 1, 5567, 1320, 1409, 107, 100, 375, 2015, 16522, 25, 52, 2811, 13, 5, 8110, 13, 7, 793, 2569, 1, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
cant open project properties google apps script === I've deleted in file->project properties -> project Properties the properties key and value and from then I can't open project properties and script not working. How reset/delete the script properties??? I've tried copy the project, but i'm using the version of project and only the latest version is copied to the new project. I'need the oldest version of my project. Please help me! this is the link of spreadsheet https://docs.google.com/a/kierowca.pl/spreadsheet/ccc?key=0AnTGczwoMaewdEp3WUdmWU5UdFpmYk1JOVkyR1g0dmc name of project zleceniaZewnSystemZlecen1 thank You.
0
[ 2, 2973, 368, 669, 3704, 8144, 4865, 18, 3884, 800, 3726, 3726, 31, 22, 195, 19584, 19, 3893, 8, 1, 21011, 3704, 13, 8, 1, 669, 3704, 14, 3704, 1246, 17, 1923, 17, 37, 94, 31, 92, 22, 38, 368, 669, 3704, 17, 3884, 52, 638, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitor a process (everything) === I want to monitor a process and everything it does (every signal it gives SIGINT what ever). Is there anyway to do this? I'm using Linux (Ubuntu 11 to be exact)
0
[ 2, 7626, 21, 953, 13, 5, 13224, 6, 800, 3726, 3726, 31, 259, 20, 7626, 21, 953, 17, 796, 32, 630, 13, 5, 12068, 2800, 32, 2352, 8858, 6391, 98, 462, 6, 9, 25, 80, 2774, 20, 107, 48, 60, 31, 22, 79, 568, 13024, 13, 5, 4502,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
jQuery/Javascript - finding a string from an unordered list is in an array === I'm trying to compare text in an unordered list to an array that I created by grabbing contents in a string then parsing it. I cannot seem to get the comparison part of my jQuery code to work where I check to see if the string lives within the array. Any suggestions? HTML <span id="Subjects">Commercial Law & Contracts, Immigration Law, International Law & Trade, Products Liability</span> <ul id="SubjectList"> <li>Administrative Law</li> <li>Agriculture Updates</li> <li>Alternative Dispute Resolution</li> <li>Antitrust & Trade Regulation</li> <li>Commercial Law & Contracts</li> <li>Immigration Law</li> <li>International Law & Trade</li> <li>Products Liability</li> </ul> JQuery Code var subject_passed = $('#Subjects').text(); var subjectArray = new Array(); subjectArray = subject_passed.split(','); $('#SubjectList li').each(function(){ if ($.inArray($(this).text(), subjectArray) != -1) { alert('hello'); } });
0
[ 2, 487, 8190, 93, 118, 1004, 1385, 8741, 13, 8, 3007, 21, 3724, 37, 40, 367, 7861, 69, 968, 25, 19, 40, 7718, 800, 3726, 3726, 31, 22, 79, 749, 20, 11590, 1854, 19, 40, 367, 7861, 69, 968, 20, 40, 7718, 30, 31, 679, 34, 9910...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Upload not works correctly, on new server php === i really dont understand what happen here, its works on most of servers but now i cant put this to working, and i dont have any idea what happen. <?php require_once dirname(dirname(dirname(__FILE__)))."/inc/config.php"; require_once dirname(dirname(dirname(__FILE__)))."/inc/class.upload.php"; $upload_folder = dirname(__FILE__); if(isset($_POST['filename'])) { $context = stream_context_create(array('http' => array('header'=>'Connection: close'))); $content = file_get_contents($_POST['file'], false, $context); $fileName = $_POST['filename']; $ext = substr($fileName, strrpos($fileName, '.') + 1); $saved_file = str_replace( '.' . $ext, '', $fileName ); $saved_file .= '_' . crypt($saved_file) . '.' . $ext; $saved_file = str_replace('/', '', $saved_file); while( @ file_exists($upload_folder.'/'.$saved_file) ) { $saved_file = str_replace( '.' . $ext, '', $saved_file ); $saved_file .= crypt($saved_file) . '.' . $ext; } if(file_put_contents($upload_folder.'/'.$saved_file, $content, 0, $context)) { $file_name_save = $upload_folder.'/'.$saved_file; $handle = new Upload($file_name_save); if ($handle->uploaded){ $imageName = $handle->file_src_name; $handle->file_new_name_body = date("Ymdhis").md5($imageName); $handle->mime_check = true; $handle->allowed = array('image/*'); $handle->image_convert = 'jpg'; if(($handle->image_src_x > 900) || ($handle->image_src_y > 900)){ $handle->image_resize = true; $handle->image_ratio = true; $handle->image_x = 900; $handle->image_y = 600; } $handle->Process(dirname(dirname(dirname(__FILE__))).'/img/Noticias/'); if ($handle->processed){ $NoticiaFoto_Imagem = $handle->file_dst_name; $Sql = "INSERT INTO tabnoticiasfotos (Noticia_Id, NoticiaFoto_Nome, NoticiaFoto_Ordem, NoticiaFoto_Imagem) VALUES ('".$_POST['ID']."', '', 'NULL', '$NoticiaFoto_Imagem') "; fputs($fp,$Sql); $Query = mysql_query($Sql,$Conn) or die(mysql_error($Conn)); @unlink($file_name_save); } } } echo $saved_file; $_SESSION["varMensagem"]["css"] = "success"; $_SESSION["varMensagem"]["mensagem"] = "Fotos Enviadas com sucesso."; exit(); } ?> this get a array of images (jquery upload) and do all the work. but on the new server, nothing works the pictures are uploaded to the same folder the file are and the new name looks crazy and dont save any information on my database.
0
[ 2, 71, 8294, 52, 693, 12044, 15, 27, 78, 8128, 13, 26120, 800, 3726, 3726, 31, 510, 1049, 1369, 98, 2384, 235, 15, 82, 693, 27, 127, 16, 17595, 47, 130, 31, 2973, 442, 48, 20, 638, 15, 17, 31, 1049, 57, 186, 882, 98, 2384, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get NSMutableDictionary Keys as Strings? === I have an NSMutableDictionary with 10 objects each with a key of course, the keys are all words and this is in a plist. So I have entered these words into the plist in a specific order: e.g. hello goodbye please thankyou How can I get these keys as an array of strings? I have tried `allKeys` but for some reason it puts them all out of order and words with spaces in are given quotation marks (I've seen this from logging the array). Any help much appreciated.
0
[ 2, 164, 13, 2172, 7903, 579, 22595, 1857, 5534, 28, 7887, 60, 800, 3726, 3726, 31, 57, 40, 13, 2172, 7903, 579, 22595, 1857, 29, 332, 3916, 206, 29, 21, 1246, 16, 674, 15, 14, 5534, 50, 65, 715, 17, 48, 25, 19, 21, 351, 5739, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
more power for OTG port with external VCC === I'm trying to add a second USB-Bus to the system because of the high amount of data.The OTG port would provide another Bus but has unfortunately not enough power to operate for example a webcam. Therefore I want to use the OTG port as host and provide the Power from the J6 extension (Ground 5VDC and Ground). With $lsusb the device gets recognized but will not work which is probably cause to an internal powercheck. I found a post in a Gumstick forum to bypass this check: "After plugging in the device, run the following command: echo -n 1 > /sys/devices/platform/musb_hdrc/usb1/1-1/bConfigurationValue This disables the power limit enforcing. You may still get a warning in the system log, but the device should work. This has to be repeated every time the Overo is rebooted or the device is plugged in" but the suggested path doesn't exist on my pandaboard. Would be great if someone could give me a hint where to turn of the powercheck. Used Kernel is from the ubuntu-omap4-extras (3.0.0-1205-omap4) Any help would be appreciated
0
[ 2, 91, 414, 26, 13, 2779, 263, 1295, 29, 4886, 566, 3384, 800, 3726, 3726, 31, 22, 79, 749, 20, 3547, 21, 153, 182, 220, 8, 3822, 20, 14, 329, 185, 16, 14, 183, 2006, 16, 1054, 9, 124, 13, 2779, 263, 1295, 83, 1181, 226, 168...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CSS background-position and iOS === Having some difficulties getting a page which could be rather large in terms of width have a body background image with the background-position property to be bottom left. For whatever reason I can't seem to get this to function correctly on iOS based devices. body, html { height: 100%; min-height: 100%; } body { background: #fff url('http://placehold.it/350x150') no-repeat left bottom; } The background image itself on load positions based on the viewport rather than the 'bottom' of the body or html element. Any ideas?
0
[ 2, 272, 18, 18, 2395, 8, 9339, 17, 13, 7760, 800, 3726, 3726, 452, 109, 8075, 1017, 21, 2478, 56, 110, 44, 864, 370, 19, 1663, 16, 9456, 57, 21, 358, 2395, 1961, 29, 14, 2395, 8, 9339, 1354, 20, 44, 2129, 225, 9, 26, 2099, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does unix SCP return an error code for network issues === In a script, I am using SCP to copy huge file to another host. scp -qrp hugefile.txt /opt/perf05/tmp However, we have noticed that this file is not being copied. I am suspecting this was because we are losing connection while copying this huge file across network. Does scp command return any error code in case of such network disconnect or is there any other way of debugging this to find out what exactly causes this failed copy. Thanks in advance. -Steve
0
[ 2, 630, 22540, 13, 18, 7439, 788, 40, 7019, 1797, 26, 982, 1549, 800, 3726, 3726, 19, 21, 3884, 15, 31, 589, 568, 13, 18, 7439, 20, 4344, 2329, 3893, 20, 226, 2015, 9, 13, 18, 7439, 13, 8, 1251, 6952, 2329, 16877, 9, 38, 396, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
.tga TV logo creation === I'm creating a .tga image to use as television overlay logo. Starting from transparent image 720x576 I put my logo in bottom right corner, then save as .tga, include alpha channel and 32 bit/pixel. When I use this file on TV its stroke appears not so smooth as I can see in photoshop. Are there some best practices for TV logo creation? Many thx
0
[ 2, 13, 9, 38, 1136, 983, 6449, 2502, 800, 3726, 3726, 31, 22, 79, 2936, 21, 13, 9, 38, 1136, 1961, 20, 275, 28, 633, 84, 4414, 6449, 9, 1422, 37, 14862, 1961, 13, 20959, 396, 264, 4436, 31, 442, 51, 6449, 19, 2129, 193, 1531, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Setting the icons of a node in TreePanel === ExtJS 4: I've created a treepanel. I wanted to set my own icons for its node so I used iconCls property for every node. Its working. But when I expand a node, it returns back to its normal 'Open Folder' icon. var treeObject = { text: "BANK OF AMERICA 1", cls: "enterprise", children: [ { text: "core outputs", cls: "businessUnit", iconCls: 'abc' } ], iconCls: 'abc', leaf: "false", expanded: true, type: "enterprise" } treePanel.setRootNode(treeObject); Please suggest something to avoid this problem.
0
[ 2, 2697, 14, 9801, 18, 16, 21, 15421, 19, 1541, 3206, 532, 800, 3726, 3726, 1396, 38, 728, 18, 3418, 31, 22, 195, 679, 21, 1541, 3206, 532, 9, 31, 417, 20, 309, 51, 258, 9801, 18, 26, 82, 15421, 86, 31, 147, 9801, 5316, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Copy file to App Document folder automatically === I want to copy set of files from project resource folder to the app document folder automatically at the time of app first launch. Can I do this. Do I need to do it through the code.
0
[ 2, 4344, 3893, 20, 4865, 4492, 19294, 7499, 800, 3726, 3726, 31, 259, 20, 4344, 309, 16, 6488, 37, 669, 6577, 19294, 20, 14, 4865, 4492, 19294, 7499, 35, 14, 85, 16, 4865, 64, 3394, 9, 92, 31, 107, 48, 9, 107, 31, 376, 20, 107...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
asp.net mvc3 formauthentication,custom role provider-Jquery auto load tabs not working.. === I am creating dynamically loading tabs using jquery Ui tabs in my ASP.NET mvc3 project. Here i have a product page. The product page contains left menus like Customer,Address,Contact,etc.. Here my process is when i click one my left menus, the tab created dynamically with Grid records. And, I'm creating a custom role provider and I set a Authorize attribute specifying a role in my controller and it's working just fine, like this: [Authorize(Roles="SuperAdmin")] public class SuperAdminController : Controller ... If one user doens't have access to this controller, And click one of my left menu means, he's redirected to login page. Its also working fine. The problem is after the user logged in it didn't redirect the proper page in tab content area. If my problem not understandable means please let me know.. Thanks Advance...
0
[ 2, 28, 306, 9, 2328, 307, 8990, 240, 505, 1346, 2504, 1786, 857, 15, 4636, 6015, 597, 11747, 8, 728, 8190, 93, 3108, 6305, 6523, 18, 52, 638, 9, 9, 800, 3726, 3726, 31, 589, 2936, 7782, 1326, 12797, 6523, 18, 568, 487, 8190, 93,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Change reCAPTCHA response to alert() instead of loading new page === I'm using reCAPTCHA and I'd like to show the response if the CATPCHA was filled in correctly/incorrectly as an `alert();` rather than it loading a new page. How can I do that? This is the form action: <form id="form" method="POST" action="verify.php"> With this in the verify.php file: <?php require_once('recaptchalib.php'); $privatekey = "(my key)"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification } ?>
0
[ 2, 753, 302, 4666, 38, 1651, 1627, 20, 7863, 5, 6, 700, 16, 12797, 78, 2478, 800, 3726, 3726, 31, 22, 79, 568, 302, 4666, 38, 1651, 17, 31, 22, 43, 101, 20, 298, 14, 1627, 100, 14, 2008, 306, 1651, 23, 1943, 19, 12044, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Login-form validation for Play! 2.0 === public static Result authenticate() { Form<LoginForm> loginForm = form(LoginForm.class).bindFromRequest(); if (loginForm.hasErrors()) { return ok(views.html.Account.index.render(loginForm)); } else { String email = loginForm.get().email; User user = User.findByUsername(email); if (Hash.checkPassword(loginForm.get().password, user.passwordHash)) { // set session session("email", email); return redirect(routes.UserController.view(user.getId())); } else { return badRequest(views.html.Account.index.render(loginForm)); } } } We use this code to authenticate users, but we'd like to display error-messages when something goes amiss during login (invalid username / password etc.). However, we can't really find any documentation on this online - as most of the documentation surrounding the use of flash for error messages is mostly for Play 1.x. 1) How can we add error messages to this log in functionality? 2) How can we access these error messages in the view? 3) How (in general) does the form class in Play! handle the creation and handling of errors (and how can we access them?) Thanks! :-)
0
[ 2, 6738, 108, 8, 4190, 27999, 26, 418, 187, 172, 9, 387, 800, 3726, 3726, 317, 12038, 829, 14351, 1373, 5, 6, 13, 1, 505, 1, 5567, 108, 4190, 1, 6738, 108, 4190, 800, 505, 5, 5567, 108, 4190, 9, 1898, 6, 9, 4772, 43, 2665, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
getting equations from timeline === Is there any way I can obtain the dynamical equations driving a chaotic timeline when I just have the timeline plot? Also have there been any papers written incorporating differential equations going chaotic, applied to economics and finance? I have tried searching but have come across just maps( eg the Dornbusch model on exchange rates).
2
[ 2, 1017, 12853, 37, 18398, 800, 3726, 3726, 25, 80, 186, 161, 31, 92, 5545, 14, 7782, 192, 12853, 2891, 21, 22523, 18398, 76, 31, 114, 57, 14, 18398, 3798, 60, 67, 57, 80, 74, 186, 3747, 642, 15239, 12086, 12853, 228, 22523, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Peer to Peer vs Client Server Topology - Use Cases === In Peer to Peer topology every system is connected to every other system in a cluster. The drawback mentioned is: 1. The full interconnect limits the number of members that can participate in this topology to a few hundred. 2. Every socket connection has some overhead associated with its buffers and you could also run out of OS limits associated with file descriptors. Again into client/server topology, server farm is all interconnected.The above mentioned drawbacks will still hold true for this type of topology as well? What use cases are supported by each topology, when should I use what, on what basis I can make conclusion?
0
[ 2, 7617, 20, 7617, 4611, 6819, 8128, 21661, 13, 8, 275, 1871, 800, 3726, 3726, 19, 7617, 20, 7617, 21661, 352, 329, 25, 2587, 20, 352, 89, 329, 19, 21, 7460, 9, 14, 2003, 1958, 2211, 25, 45, 137, 9, 14, 503, 21087, 5887, 14, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Import picture of an object for plotting purposes? === I'm writing a program to simulate the movement of a chaser following a target. The chaser is supposed to have a camera, and based on the target image, it follows the target. Now, I've used 4 planar points in a square shape to represent the camera of the chaser. Thus, for chasing, I'm updating the position of these 4 points in a 3D plot to represent chaser movement. I would like to know if it's possible to import a picture of, say, an actual camera and use that instead of the present 4 points, for aesthetic purposes? If yes, how? I'm not very familiar with MATLAB, so I'd appreciate it if you could be detailed and specific with your answer. Thanks in advance
0
[ 2, 9010, 2151, 16, 40, 3095, 26, 22716, 4612, 60, 800, 3726, 3726, 31, 22, 79, 1174, 21, 625, 20, 24969, 14, 1018, 16, 21, 3473, 139, 249, 21, 2935, 9, 14, 3473, 139, 25, 2293, 20, 57, 21, 3336, 15, 17, 432, 27, 14, 2935, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create a page that accepts a birth date and birth time of the user in php === Create a page that accepts a birth date and birth time of the user. The script will compute the time elapsed(age) from the given date and time until the current date and time. Ex. Given: Birth Date: January 5, 2000 Birth Time: 10:00 am Elapse time from January 5, 2000 10:00 am to present date and time: ______ year ______ months ______ days ______ hours ______ minutes ______ seconds
1
[ 2, 1600, 21, 2478, 30, 16548, 21, 2208, 1231, 17, 2208, 85, 16, 14, 4155, 19, 13, 26120, 800, 3726, 3726, 1600, 21, 2478, 30, 16548, 21, 2208, 1231, 17, 2208, 85, 16, 14, 4155, 9, 14, 3884, 129, 23909, 14, 85, 13, 62, 17057, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reading block of memory into array? === I am using the method below to read bytes in memory. I want to read values in memory addresses which are very near each other. Previously I have been making individual calls for each byte in memory and adding the result to an array using a for loop. This became really inefficient, so instead I want to adapt the below code to read a large block of memory and then try to do an itteration through the array to pull out the bytes I want. I have spent a bit of time trying to work it out, but really struggling. FYI, this method reads a pointer, and then if that value is a pointer, it reads that pointer, and so forth until it gets to the static address then reads the byte value at that address. [DllImport("kernel32", EntryPoint = "ReadProcessMemory")] private static extern byte ReadProcessMemoryByte(int Handle, int Address, ref byte Value, int Size, ref int BytesRead); public static byte ReadPointerByte(string EXENAME, int Pointer, int[] Offset) { byte Value = 0; checked { try { Process[] Proc = Process.GetProcessesByName(EXENAME); if (Proc.Length != 0) { int Bytes = 0; int Handle = OpenProcess(PROCESS_ALL_ACCESS, 0, Proc[0].Id); if (Handle != 0) { foreach (int i in Offset) { ReadProcessMemoryInteger((int)Handle, Pointer, ref Pointer, 4, ref Bytes); Pointer += i; } ReadProcessMemoryByte((int)Handle, Pointer, ref Value, 2, ref Bytes); CloseHandle(Handle); } } } catch { } } return Value; } What I have so far: private void label1_Click(object sender, EventArgs e) { int[] valuesSeperated[200]; List<byte> PreArray = new List<byte>(); Process[] test = Process.GetProcessesByName("MyProcess"); //Get process handle int baseAddress = test[0].MainModule.BaseAddress.ToInt32(); //Get base address byte ReadX = MyClass.ReadPointerByte("MyProcess", BaseAddress, new int[] { 0xc, 0x0, 0x2 }); //call memory reading function (including memory offsets) PreArray.Add(ReadX); byte[] PreArrayToInt = PreArray.ToArray(); int[] MYConvertedBytes = PreArray ToInt.Select(x => (int)x).ToArray(); foreach (int i in MYConvertedBytes) { valuesSeperated // (don't really know what to do here, if the read was successful I would have a long number at [0], so now need to seperate these as if I had read each one in memory one at a time. } string TestString = MYConvertedBytes[0].ToString(); label1.Text = TestString; } So to summarize: I don't know how to read a larger block of memory (say 200 addresses at once) using the above method. I don't know how best to extract the values from the resulting array to form a new array that has the bytes now separated. Please ask if anything is unclear, I am quite new and really want to learn so any hints/help would be really appreciated.
0
[ 2, 1876, 1921, 16, 1912, 77, 7718, 60, 800, 3726, 3726, 31, 589, 568, 14, 2109, 1021, 20, 1302, 34, 3231, 19, 1912, 9, 31, 259, 20, 1302, 4070, 19, 1912, 12636, 56, 50, 253, 424, 206, 89, 9, 1343, 31, 57, 74, 544, 1359, 3029, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pushwoosh PhoneGap notifications send to only some subscribers === Ok so I have been using phonegap for a while for IOS apps. I started integrating Pushwoosh for a new app so I can send push notifications and it works fine. Now I need to know if Pushwoosh has extended capabilities. This would be: My app will have say 50 users and say 5 groups. Any user can belong to multiple groups. Now my app connectes to an external database so I have the ability figure out what groups the user is in. Which means when Pushwoosh registes a device I can also get the device ID and save it to the database. Now does Pushwoosh have an api that I can call so I can send a notification to only certain users. ie. User 1 is in group 2. Therefore I only want to send notifications to users in group 2?
0
[ 2, 3250, 14793, 1635, 1132, 1136, 306, 52, 4634, 18, 2660, 20, 104, 109, 19549, 800, 3726, 3726, 5854, 86, 31, 57, 74, 568, 1132, 1136, 306, 26, 21, 133, 26, 13, 7760, 4865, 18, 9, 31, 373, 24529, 3250, 14793, 1635, 26, 21, 78, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento 1.4 checkout error (move customer back to cart after selected different sh. address) === I have a big problem with Magento 1.4. checkout. When the customer (Registred or Guest) select ship to different shipping address (step 1), then fill out the data in step 2 and select shipment in the step 3 and select next; the customer is moved back to the cart view without any error. I goggled, but I don't found any solution, any idea?
2
[ 2, 4723, 17050, 137, 9, 300, 2631, 1320, 7019, 13, 5, 16598, 7705, 97, 20, 6420, 75, 1704, 421, 5527, 9, 3218, 6, 800, 3726, 3726, 31, 57, 21, 580, 1448, 29, 4723, 17050, 137, 9, 300, 9, 2631, 1320, 9, 76, 14, 7705, 13, 5, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cocoa Command Line Tools Method Declerations === So this question is to help me better understand the inner workings of the Cocoa/iOS framework and it may seem like a very simple question. If you were to create a command line tool using Xcode, for example, using Core Data, Xcode generates methods in the "main.m" file that take in parameters in parentheses rather than the colon that is indicative of Objective-C. For example the following is the generated method declaration `static NSManagedObjectContext *managedObjectContext()` But, there is still Objective-C messages being sent inside the methods. For example, `NSString *path = [[[NSProcessInfo processInfo] arguments] objectAtIndex:0]; path = [path stringByDeletingPathExtension]; NSURL *modelURL = [NSURL fileURLWithPath:[path stringByAppendingPathExtension:@"momd"]]; model = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];` Is this because the main.m file is a C/C++ file and not a Objective-C file, even though they share the same file extensions? Thanks for any insight!
0
[ 2, 24507, 1202, 293, 4672, 2109, 121, 18828, 7504, 800, 3726, 3726, 86, 48, 1301, 25, 20, 448, 55, 574, 1369, 14, 3754, 638, 18, 16, 14, 24507, 118, 7760, 6596, 17, 32, 123, 2260, 101, 21, 253, 1935, 1301, 9, 100, 42, 46, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
what does bundle identifier mean in the ios project? === when I use command line tool template, it has a bundle identify inside the wizard. What does bundle identifier mean? Does this similar to namespace?
0
[ 2, 98, 630, 10194, 25570, 884, 19, 14, 13, 7760, 669, 60, 800, 3726, 3726, 76, 31, 275, 1202, 293, 5607, 22894, 15, 32, 63, 21, 10194, 5808, 572, 14, 10276, 9, 98, 630, 10194, 25570, 884, 60, 630, 48, 835, 20, 204, 5582, 60, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
<c:catch> output value of the variable on the screen when no exception caught === In my web application I have to give this line to check whether an object has a field <c:catch var="itemException">${item.masterOrderId}</c:catch> However, it seems like when there is an exception thrown, the page works like desired, but when there currency item has a field `masterOrderId` then the page get a line of ugly output of all the master order id, like this 7876288237088001859330060608701482416601260870751365393358087099973546544808785323837468560876664746049371087079881351783808767780494694690870295666366152083001 When i try to check the page source, interestingly I cannot find the string. so please let me know anything I can do to find out the trick, so I can do something to avoid of the nasty output. Thank you.
0
[ 2, 13, 1, 150, 45, 18208, 1, 5196, 1923, 16, 14, 7612, 27, 14, 2324, 76, 90, 5391, 1383, 800, 3726, 3726, 19, 51, 2741, 3010, 31, 57, 20, 590, 48, 293, 20, 2631, 1472, 40, 3095, 63, 21, 575, 13, 1, 150, 45, 18208, 4033, 3726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Parser Google Search results === Is there any way to parse Google search's results or retrieve them on an XML or JSON? I tried with Google's API but I didn't find a solution! Thanks in advance
0
[ 2, 2017, 4104, 8144, 2122, 1736, 800, 3726, 3726, 25, 80, 186, 161, 20, 2017, 870, 8144, 2122, 22, 18, 1736, 54, 11917, 105, 27, 40, 23504, 54, 487, 528, 60, 31, 794, 29, 8144, 22, 18, 21, 2159, 47, 31, 223, 22, 38, 477, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Android error: You must specifiy a valid layout reference. The layout ID. in elcipse === I have been working with elcipse for a couple of weeks now. My code has functioned properly but all of a sudden it has stopped working. I get this error, main.xml: You must specifiy a valid layout reference. The layout ID @layout/required is not valid. my XML code <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> <!-- select between BIN or auction --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="horizontal" > <Button android:id="@+id/AuctionButton" android:layout_marginLeft="82dp" android:layout_width="119dp" android:layout_height="wrap_content" android:onClick="showAuctionOptions" android:text="Auction" /> <Button android:id="@+id/BINButton" android:layout_marginLeft="-2dp" android:layout_width="119dp" android:layout_height="wrap_content" android:onClick="showAuctionOptions" android:text="Buy it now" /> </LinearLayout> <include android:id="@+id/cell1" layout="@layout/required"/> <include android:id="@+id/cell2" layout="@layout/gray_line" /> <!--** Show if Buy it now is selected **--> <include android:id="@+id/cell3" layout="@layout/buyitnow" /> <!-- ** End Buy it now display ** --> <!--** Show if auction selected ** --> <include android:id="@+id/cell4" layout="@layout/auction" /> <include android:id="@+id/cell5" layout="@layout/gray_line" /> <include android:id="@+id/cell6" layout="@layout/addons" /> <include android:id="@+id/cell7" layout="@layout/calculate" /> </LinearLayout> </ScrollView> the error is with the first include, however if I remove that, I just get an error with the second include. If I remove all of the include, I get a 'could not resolve R' error within my java code. What I have tried, - cleaning the project - restarting eclipse - rebooting my computer none of which have worked.Could anyone help please? Thanks
0
[ 2, 13005, 7019, 45, 42, 491, 12737, 821, 49, 93, 21, 7394, 9106, 2801, 9, 14, 9106, 4924, 9, 19, 931, 11526, 870, 800, 3726, 3726, 31, 57, 74, 638, 29, 931, 11526, 870, 26, 21, 1335, 16, 1342, 130, 9, 51, 1797, 63, 1990, 69, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does a rollback inside a INSERT AFTER or UPDATE AFTER trigger rollback the entire transaction === Does a rollback inside a INSERT AFTER or an UPDATE AFTER trigger rollback the entire transaction or just the current row that is the reason for trigger, and is it same with Commit ? I tried to check it through my current projects code which uses MSTDC for transactions, and it appears as if though the complete transaction is aborted. If a Rollback in the trigger does rollback the entire transaction, is there a workaround for to restrict it just the current rows. I found a link for [sybase][1] on this, but nothing on sql server [1]: http://manuals.sybase.com/onlinebooks/group-as/asg1250e/sqlug/@Generic__BookTextView/49241;pt=49055
0
[ 2, 630, 21, 3001, 1958, 572, 21, 14692, 75, 54, 11100, 75, 7286, 3001, 1958, 14, 1078, 12799, 800, 3726, 3726, 630, 21, 3001, 1958, 572, 21, 14692, 75, 54, 40, 11100, 75, 7286, 3001, 1958, 14, 1078, 12799, 54, 114, 14, 866, 3131, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sublime Text 2 Mouse free Opening files from "Find in Files" results === Loving Sublime Text 2. What would be a huge help is being able to open a file from the **Find in File** results without using the mouse. Can't find the shortcut for this; there must be one!
0
[ 2, 27644, 1854, 172, 7567, 551, 1214, 6488, 37, 13, 7, 19811, 19, 6488, 7, 1736, 800, 3726, 3726, 8085, 27644, 1854, 172, 9, 98, 83, 44, 21, 2329, 448, 25, 142, 777, 20, 368, 21, 3893, 37, 14, 13, 1409, 19811, 19, 3893, 1409, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Defining custom classpath for a jar manifest in gradle === I'm trying to define a jar task for all sub projects (about 30). I tried the following task: jar { destinationDir = file('../../../../_temp/core/modules') archiveName = baseName + '.' + extension metaInf { from 'ejbModule/META-INF/' exclude 'MANIFEST.MF' } def manifestClasspath = configurations.runtime.collect { it.getName() }.join(',') manifest { attributes("Manifest-Version" : "1.0", "Created-By" : vendor, "Specification-Title" : appName, "Specification-Version" : version, "Specification-Vendor" : vendor, "Implementation-Title" : appName, "Implementation-Version" : version, "Implementation-Vendor" : vendor, "Main-Class" : "com.dcx.epep.Start", "Class-Path" : manifestClasspath ) } } My problem is, that the dependencies between the sub projects are not included in the manifest's classpath. I tried changing the runtime configuration to a compile configuration but that results in the following error. > * What went wrong: A problem occurred evaluating project ':EskoordClient'. > > You can't change a configuration which is not in unresolved state! That is my complete build file for project EskoordClient: dependencies { compile project(':ePEPClient') } Most of my sub projects build files only define the projects dependencies. 3rd party lib dependencies are defined in the build file of the super project. Is there a possibility to include all needed classpath entries (3rd party libraries and other projects) to a manifest classpath in a superproject for all subprojects.
0
[ 2, 14684, 5816, 718, 8353, 26, 21, 5112, 13160, 19, 13, 7691, 413, 800, 3726, 3726, 31, 22, 79, 749, 20, 9267, 21, 5112, 3005, 26, 65, 972, 2314, 13, 5, 6901, 712, 6, 9, 31, 794, 14, 249, 3005, 45, 5112, 13, 1, 6970, 9035, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQuery set value onClick of table cell === I have a custom calendar that I created that basically just creates a table cell for each day of the month. What I'm trying to do is when the user clicks on a specific day, display a pop-up (which will be loading a seperate page) that displays all events for that selected date. However I'm unsure how to set the value of the selected date so that I can pass this in to the pop-up page. Here is what I have at the moment: <td align="center" valign="middle" width="26" height="27s" class="lightBlue dayPopup" style="cursor: pointer;" onMouseOver="javascript:this.className='lightBlueH'; document.getElementById('#Request.calID#day#Day(Variables.cellDate)#').style.visibility='visible';" onMouseOut="javascript:this.className='lightBlue'; document.getElementById('#Request.calID#day#Day(Variables.cellDate)#').style.visibility='hidden';" onClick="setDate(#Variables.cellDate#);" id="#Variables.cellDate#"> The JQuery: $("##setDate").click(function(date) { var viewDate = date; }); I then set a variable that passes the URL in to a function that controls the pop-up. Can someone please point me in the right direction of where I'm going wrong trying to set the value of the selected date? Thanks very much
0
[ 2, 487, 8190, 93, 309, 1923, 27, 150, 10129, 16, 859, 1667, 800, 3726, 3726, 31, 57, 21, 5816, 7036, 30, 31, 679, 30, 11374, 114, 9695, 21, 859, 1667, 26, 206, 208, 16, 14, 1617, 9, 98, 31, 22, 79, 749, 20, 107, 25, 76, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
websites metrics === To compare the popularity among websites I usually check the Google page rank, and the Alexa Traffic Rank. Can you suggest me some other autority to compare metrics/rank/stat among websites?
2
[ 2, 13931, 11544, 18, 800, 3726, 3726, 20, 11590, 14, 5178, 497, 13931, 31, 951, 2631, 14, 8144, 2478, 2839, 15, 17, 14, 2155, 58, 2227, 2839, 9, 92, 42, 5601, 55, 109, 89, 3108, 139, 856, 20, 11590, 11544, 18, 118, 23083, 118, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How reliable is to check error code 200 to detect an authorization error? === I am trying to identify when an action without authorization has been made. Is it 100% returning error code 200 in those situations?
0
[ 2, 184, 11398, 25, 20, 2631, 7019, 1797, 2327, 20, 9092, 40, 22677, 7019, 60, 800, 3726, 3726, 31, 589, 749, 20, 5808, 76, 40, 1028, 366, 22677, 63, 74, 117, 9, 25, 32, 12849, 2485, 7019, 1797, 2327, 19, 273, 8329, 60, 3, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Getting strange values with Parcelable === I have a Parcelable which contains another Parcelable, both have an id. For the contained Parcelable I write id 22 but it reads 20. Why? I constructed a complete example Parcelable1 public class Parcelable1 implements Parcelable { public int id = 11; public Parcelable2 parcelable2; public Parcelable1() { parcelable2 = new Parcelable2(22); } @Override public int describeContents() { return hashCode(); } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(id); dest.writeParcelable(parcelable2, flags); } public static final Creator<Parcelable1> CREATOR = new Parcelable.Creator<Parcelable1>() { public Parcelable1 createFromParcel(Parcel source) { return new Parcelable1(source); } public Parcelable1[] newArray(int size) { return new Parcelable1[size]; } }; public Parcelable1(Parcel source) { id = source.readInt(); parcelable2 = Parcelable2.CREATOR.createFromParcel(source); } } Parcelable2 public class Parcelable2 implements Parcelable { public int id = 22; public Parcelable2(int id) { this.id = id; } @Override public int describeContents() { return hashCode(); } @Override public void writeToParcel(Parcel dest, int flags) { Log.d("test", "WRITE Parcelable2 id:" + id); dest.writeInt(id); } public static final Creator<Parcelable2> CREATOR = new Parcelable.Creator<Parcelable2>() { public Parcelable2 createFromParcel(Parcel source) { return new Parcelable2(source); } public Parcelable2[] newArray(int size) { return new Parcelable2[size]; } }; public Parcelable2(Parcel source) { id = source.readInt(); Log.d("test", "READ Parcelable2 id:" + id); } } Activity which passes the Parselable: public class ParcelableTestActivity1 extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); findViewById(R.id.btn).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(ParcelableTestActivity1.this, ParcelableTestActivity2.class); i.putExtra("par", new Parcelable1()); startActivity(i); } }); } } The receiving activity: public class ParcelableTestActivity2 extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); Parcelable1 p = (Parcelable1)getIntent().getParcelableExtra("par"); Log.d("test", "parcelable 1 is: " + p + "id: " + p.id + " p2: " + p.parcelable2 + " p2.id: " + p.parcelable2.id); Toast.makeText(this, "parc1 id: " + p.id + " parc2 id: " + p.parcelable2.id, Toast.LENGTH_LONG).show(); } } The outputs: > 06-25 17:45:29.440: D/test(4107): READ Parcelable2 id:0 >06-25 17:45:29.440: D/test(4107): parcelable 1 is: com.test.Parcelable1@4052e430id: 11 p2: com.test.Parcelable2@4052e6e0 p2.id: 0 >06-25 17:47:19.968: D/test(4247): WRITE Parcelable2 id:22 >06-25 17:47:19.988: D/test(4247): READ Parcelable2 id:20 >06-25 17:47:19.988: D/test(4247): parcelable 1 is: com.test.Parcelable1@4052e238id: 11 p2: com.test.Parcelable2@4052e250 p2.id: 20
0
[ 2, 1017, 2578, 4070, 29, 16554, 579, 800, 3726, 3726, 31, 57, 21, 16554, 579, 56, 1588, 226, 16554, 579, 15, 156, 57, 40, 4924, 9, 26, 14, 3437, 16554, 579, 31, 2757, 4924, 1024, 47, 32, 11137, 434, 9, 483, 60, 31, 2096, 21, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
erlang typechecking === From what I understand there is no way of type-checking the messages send in erlang. lets say i start a module with the following receive loop: loop(State) -> receive {insert, _} -> io:fwrite("insert\n",[]), loop(State); {view, _} -> io:fwrite("view\n", []), loop(State) after 10000 -> ok end. There is no way for me to check what people are sending to the process, and no way to check for that its type safe? Are there any easy work arrounds? The one I have come up with is using functions in the module being called like : send_insert(Message) -> whereis(my_event_handler) ! {insert, Message}, ok. this way at least I can add the `-spec send_insert(string()) -> ok.` spec to the module. now at least I have limited the error to my module. Are there a more standard way of doing typechecking on messages?
0
[ 2, 13, 106, 9949, 1001, 12542, 68, 800, 3726, 3726, 37, 98, 31, 1369, 80, 25, 90, 161, 16, 1001, 8, 12542, 68, 14, 7561, 2660, 19, 13, 106, 9949, 9, 6884, 395, 31, 799, 21, 12613, 29, 14, 249, 2588, 5293, 45, 5293, 5, 3859, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using the Netflix Odata service with WP71 === I'm trying to use the Netflix Odata service with WP71 but it aint working. What's wrong with this code? private const string NETFLIX_CATALOG_URI = "http://odata.netflix.com/v2/Catalog/"; public ObservableCollection<Title> SearchByTitle(string searchKey) { NetflixCatalog catalog = new NetflixCatalog(new Uri(NETFLIX_CATALOG_URI)); var query = catalog.Titles.Where(t => t.Name.Contains(searchKey)); DataServiceCollection<Title> titles = new DataServiceCollection<Title>(catalog); titles.LoadAsync(query); return titles; }
0
[ 2, 568, 14, 23233, 635, 18768, 365, 29, 13, 13790, 4241, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 14, 23233, 635, 18768, 365, 29, 13, 13790, 4241, 47, 32, 21, 6391, 638, 9, 98, 22, 18, 1389, 29, 48, 1797, 60, 932, 11608, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to load from more then one template_folder for Flask blueprint? === I learned how to create Flask Blueprints and can create blueprint for non flask products that uses Jinja2 templates and use them inside flask projects. I do something like this: <!-- language: lang-py --> # blueprint code from flask import Blueprint from pkg_resources import resource_filename app = Blueprint('formgear', __name__, template_folder=resource_filename('formgear', 'templates')) And now I want to add another set of templates, which is logically connected with my non-Flask project but are Flask-only specific. I'm completely not sure is it good desing, but is there any way to propagate both templates folders from one blueprint? And make both templates set available for whole Flask project? Note: `formgear` is name of my non-Flask project.
0
[ 2, 184, 20, 6305, 37, 91, 94, 53, 22894, 1, 8814, 106, 26, 28972, 26272, 60, 800, 3726, 3726, 31, 2691, 184, 20, 1600, 28972, 26272, 18, 17, 92, 1600, 26272, 26, 538, 28972, 1985, 30, 2027, 5627, 1004, 135, 22894, 18, 17, 275, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
c++ persisting data === what I want to archive is a simple way to make some variables persistent. For this I wrote a PeristenceProvider Class which wraps the boost property tree functionality to store data in xml / ini files. At the moment I need to do things like this: ClassA::ClassA() { m_valueI = PersistenceProvider.getInstance.get("valueI"); } ClassA::~ClassA() { PeristenceProvider.getInstance.set("valueI", m_valueI); } But is there a chance to hide this in a way like this: class ClassA { Persist<int> m_ValueI; }
0
[ 2, 272, 20512, 22084, 68, 1054, 800, 3726, 3726, 98, 31, 259, 20, 9250, 25, 21, 1935, 161, 20, 233, 109, 12157, 15348, 9, 26, 48, 31, 738, 21, 416, 702, 2940, 26735, 139, 718, 56, 8118, 18, 14, 10419, 1354, 1541, 18548, 20, 1718...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Problems with repeater controls === I'm having lots of trouble understanding how repeaters are supposed to work, and how I'm supposed to use them. Basically, What I want to do, have a label, and set of image buttons and a div within a repeater. When you click on the button, I want to populate the div that was created with these repeaters (so a different div for each itteration of the repeater). It seems so simple, yet I can't get anything to work. Please help me!. Here is some of my code if that helps. (my data source) <asp:sqldatasource runat="server" id="dtsSpecialNotes" connectionstring="connection string" providername="System.Data.SqlClient"> /asp:sqldatasource (my repeater) <asp:Repeater id="rptSpecialNotes" runat="server"> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> </ItemTemplate> </asp:Repeater> (some code behind, I have a method to populate the repeater called on page load) rptSpecialNotes.DataSource = dtsSpecialNotes rptSpecialNotes.DataBind() Dim imbMotion As New ImageButton Dim imbAttachments As New ImageButton imbMotion.ImageUrl = "images/controls/Exclaim.png" imbMotion.Width = "40" imbMotion.Height = "40" imbMotion.AlternateText = "Add Motion" imbMotion.ID = "imbMotion" & listSpecialNotesCounter imbAttachments.ImageUrl = "images/controls/Documents.png" imbAttachments.Width = "40" imbAttachments.Height = "40" imbAttachments.AlternateText = "Add Document" imbAttachments.ID = "imbAttachments" & listSpecialNotesCounter rptSpecialNotes.Controls.Add(lblTitle) rptSpecialNotes.Controls.Add(imbMotion) Yeah, so A list of problems I'm having: I can't get the repeater to itterate. It's only fireing off once, and then stopping. Which is a problem. I can't get a label with the repeater data source's Subject ( a feild in my database) to appear. I really appreciate any help. I just can't grasp these repeater controls.
0
[ 2, 1716, 29, 6830, 106, 8671, 800, 3726, 3726, 31, 22, 79, 452, 7503, 16, 2572, 3260, 184, 6830, 445, 50, 2293, 20, 170, 15, 17, 184, 31, 22, 79, 2293, 20, 275, 105, 9, 11374, 15, 98, 31, 259, 20, 107, 15, 57, 21, 1899, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
regex find all word not end with "=" or " =" === i want to find all words that start with @ and not end with equal (=) "@parameter" ---> result = "@parameter" "@parameter = @first" ---> result = "@first" "@parameter = @first, @parameter = @second" ---> result = "@second" Thanks in advance
0
[ 2, 7953, 1706, 477, 65, 833, 52, 241, 29, 13, 7, 3726, 7, 54, 13, 7, 800, 7, 800, 3726, 3726, 31, 259, 20, 477, 65, 715, 30, 799, 29, 13, 1, 17, 52, 241, 29, 2747, 13, 5, 3726, 6, 13, 7, 1, 6351, 7307, 7, 13, 8, 8, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can you search html attributes using wildcards with ruby nokogiri === I know you can search text in html using wildcards. Can you search for attribute values in html using wildcards with nokogiri e.g., suppose I want to search for classes with value `*session*`
0
[ 2, 92, 42, 2122, 13, 15895, 13422, 568, 23003, 18, 29, 10811, 90, 921, 14913, 800, 3726, 3726, 31, 143, 42, 92, 2122, 1854, 19, 13, 15895, 568, 23003, 18, 9, 92, 42, 2122, 26, 35, 14755, 4070, 19, 13, 15895, 568, 23003, 18, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why can a Map object be created without an apply-method? === C:\Users\John>scala Welcome to Scala version 2.9.2 (Java HotSpot(TM) Client VM, Java 1.6.0_32). Type in expressions to have them evaluated. Type :help for more information. scala> import scala.collection.mutable.Map import scala.collection.mutable.Map scala> Map res0: scala.collection.mutable.Map.type = scala.collection.mutable.Map$@4d37e5 When using `Map` without keyword `new` the `apply` method from the corresponding companion object will be called. But the Scala Documentation does not list an `apply` method for mutable Maps (only an `apply` method to retrieve a value from the map is provided). Why is the code above still working ?
0
[ 2, 483, 92, 21, 2942, 3095, 44, 679, 366, 40, 5645, 8, 5909, 1807, 43, 60, 800, 3726, 3726, 272, 45, 1, 16704, 18, 1, 7373, 1, 18, 3430, 58, 5575, 20, 25975, 615, 172, 9, 518, 9, 135, 13, 5, 1004, 1385, 1047, 18, 4296, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
why is program not compiling? === Hey you expert please help me find out whats wrong why my devcpp doesnt compile my program #include <windows.h> #include <iostream.h> int main() { using namespace std; cout << "Hello There please input A number" << endl; int number; cin >> number; if( number >= 2 && number <= 2 ) { cout << "You have input the wrong number haha" << endl; } else { cout << "Wow how'd you guessed it?" << endl; } system("PAUSE>NUL"); return 23; }
3
[ 2, 483, 25, 625, 52, 24378, 60, 800, 3726, 3726, 8409, 42, 5390, 2247, 448, 55, 477, 70, 98, 18, 1389, 483, 51, 121, 8990, 3421, 5886, 26561, 51, 625, 6926, 22640, 13, 1, 27508, 18, 9, 252, 1, 6926, 22640, 13, 1, 1963, 11260, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
javascript jquery response html into a div do not retrive all html === I am doing a ajax call with jquery and putting the content inside a div like this: $('#replace').html(response); But it is not replacing all the content I got from 'response'. When a do : alert(response) I see all the html code with no problem. But when I do: $('#replace').html(response); its do not put all the html code from response. When I do a alert alert(response); I got this (which is correct): ###### <div id='replace'> <tr onclick='javascripot:gravaJOBparaView(5746);' ondblclick='fnOpen(5746);' > <td class='preview' title='8746' >8746</td> <td>XXXX</td> <td>xxxxx</td> <td>xxxx</td> <td>xxx</td> <td>xxxxx</td> <td title='xpto'>XXXXXX</td> <td></td> <td> <br/>18:00</td> <td>22/07/2012</td> <td title='Check XXXXX' class='popups' ><a href='#popup_5746'><img src='xpto.png' alt='Check XXXXXX' width='40px'></a></td> </tr> </td> </div> ###### But When I do the: $('#replace').html(response); It put this code in the div 'replace': ######### <div id="replace"> 8746 XXX XXXX XXXX XXXXX XXXXX RXXXXXX <br>18:00 22/07/2012 <a href="#popup_5746"><img width="40px" alt="Check XXXXX" src="xxxxxx.png.png"></a> </div> ######## As you can see for some reason it do not put all the tags from response. What should I do? Thanks
0
[ 2, 8247, 8741, 487, 8190, 93, 1627, 13, 15895, 77, 21, 13, 12916, 107, 52, 302, 3367, 195, 65, 13, 15895, 800, 3726, 3726, 31, 589, 845, 21, 20624, 645, 29, 487, 8190, 93, 17, 3873, 14, 2331, 572, 21, 13, 12916, 101, 48, 45, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shared Variables lifetime === When are Shared (Static) variables created and destroyed. For example have a look at the code below: Imports System.Data.SqlClient Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Person.testCon = New SqlConnection Person.Age = 30 Dim p1 As Person End Sub End Class Imports System.Data.SqlClient Public Class Person Public Shared testCon As SQLConnection End Class The testCon variable is accessible from the Form_Load before the first instance of Person is created. I realise that it is probably not good practice to have a connection as a shared variable but I want to get my point across. I also want to know when variables are created and destroyed if they are primitives (like Person.Age in the example)
0
[ 2, 2592, 12157, 5277, 800, 3726, 3726, 76, 50, 2592, 13, 5, 18077, 6, 12157, 679, 17, 2183, 9, 26, 823, 57, 21, 361, 35, 14, 1797, 1021, 45, 20617, 329, 9, 18768, 9, 18, 22402, 150, 18513, 38, 317, 718, 505, 165, 932, 972, 505...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Code-Completion for e.g. Numpy, SciPy or Matplotlib does not work in Eclipse PyDev === Can't get code-completion to work for e.g. SciPy, Numpy or Matplotlib in Eclipse/PyDev under Ubuntu 12.4 (at home) or 11.4 (at work). Tried with Eclipse Helios and Juno, PyDev in latest version (2.6). Code completion does work for e.g. internal project references or builtins. Have added path to "Preferences->Pydev->Interpreter - Python->Libraries" and added scipy, numpy and matplotlib to the "Forced Builtins". Under "Preferences->PyDev->Editor->Code Completion" "Minimum Number of chars..." is set to 1, "Preferences->PyDev->Editor->Code Completion (ctx insensitive and tokens)" "Number of chars for..." are both set to 2. Importing and code completion works within ipython shell, so I think it must be something in PyDev... Example code: import numpy as np myArr = np.array([1,2,3]) myArr.set<hit CTRL-SPACE for completion> Code-completion does not suggest any of the array methods here (setasflat, setfield, setflags). Thanks for any suggestions... :) Regards, Carsten
0
[ 2, 1797, 8, 11103, 1336, 872, 26, 13, 62, 9, 263, 9, 13, 6336, 6448, 15, 9569, 6448, 54, 4277, 13221, 38, 8326, 630, 52, 170, 19, 11652, 7103, 14438, 800, 3726, 3726, 92, 22, 38, 164, 1797, 8, 11103, 1336, 872, 20, 170, 26, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Load SharedPreference efficient === In my app I get a bug that makes me unable to load the SharedPreferences. The reason this happens is that when the applications is killed for good(task killer or phone restart) the phone can not load everything again. For now I am using this technique: if ((sharedPreferences.getString("EXA1", "")) == "Example1"){ //do something } else if ((sharedPreferences.getString("EXA1", "")) == "Example2"){ //do something } else if ((sharedPreferences.getString("EXA1", "")) == "Example3"){ //do something } else{ //do nothing } Since I got around 75 else if statements my phone refuses to load them after the app is killed. Are there any more efficient way of loading and then do something?(Note: I got more then one single SharedPreference)
0
[ 2, 6305, 2592, 306, 28018, 8243, 800, 3726, 3726, 19, 51, 4865, 31, 164, 21, 6256, 30, 1364, 55, 2343, 20, 6305, 14, 2592, 306, 28018, 18, 9, 14, 1215, 48, 5531, 25, 30, 76, 14, 3767, 25, 841, 26, 254, 5, 38, 20310, 5412, 54, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IoC: Add object represented only by interface to a ORM generated collection of entities === I'm trying to use IoC on small project for which I use one commercional ORM. There is collection of 'User' Entites on my Entity 'Project'. When I pass an interface to the method, I'm unable to add th eobject to the collection of 'User' entities, because it is represented by some ORM EntityCollection class. Example: //'this' is a partial class to the modeled Entity<int> public void AddToCollection(IUser user) { this.Users.Add(user); //this.Users is type of EntityCollection. } I see the two possibilities here and I don't know which one is the best practice. 1.) Change the EntityCollection to IEnumerable (which is not possible) 2.) Cast IUser to User Or may be I'm going completely wrong way wiht IoC, what is the best practice here? Thank you
0
[ 2, 31, 2499, 45, 3547, 3095, 1622, 104, 34, 6573, 20, 21, 54, 79, 6756, 1206, 16, 12549, 800, 3726, 3726, 31, 22, 79, 749, 20, 275, 31, 2499, 27, 284, 669, 26, 56, 31, 275, 53, 11951, 106, 10934, 192, 54, 79, 9, 80, 25, 1206...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Read in multiple data types to a list === The title may be updated once the question is posted, But I start with an .ini file I would like to save Integers , Strings , Bool To this .ini file. Which I can do with WriteString WriteInteger WriteBool Then I Would like to read it into a list, Where when i pulled the data from the list it would know its all ready a integer or string or bool? Currently I have to write everything as a string and then i read into a stringlist.
0
[ 2, 1302, 19, 1886, 1054, 2551, 20, 21, 968, 800, 3726, 3726, 14, 581, 123, 44, 6372, 382, 14, 1301, 25, 6054, 15, 47, 31, 799, 29, 40, 13, 9, 2651, 3893, 31, 83, 101, 20, 2079, 13820, 18, 13, 15, 7887, 13, 15, 1607, 1823, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get a slug name for a page without creating an admin page menu === I now use the add_submenu_page() function, but I don't want the edit page to appear in the admin menu. I want to access the edit page from a list (another page) directly. But I need the slug as a hook_suffix. I have in my-edit.php /* Set up the administration functionality. */ add_action( 'admin_menu', 'my_edit_setup' ); function roxal_actionlist_edit_setup() { ... /* Add Edit Actionlist page. */ $myplugin->my_edit = add_submenu_page( 'myplugin', esc_attr__( 'Edit', 'myplugin' ), esc_attr__( 'Edit', 'myplugin' ), 7, 'my-edit', 'my_edit' ); ... In admin.php I have: function roxal_admin_enqueue_style( $hook_suffix ) { $pages = array( 'admin_page_projects', '...my-edit' ); if ( in_array( $hook_suffix, $pages ) ) { wp_enqueue_style( 'myplugin-admin', trailingslashit( MYPLUGIN_URI ) . 'css/admin.css', false, '20110525', 'screen' ); You see I need the $hook_suffix, but I can't find out how to get this, without creating the admin menu item.
0
[ 2, 184, 20, 164, 21, 15850, 204, 26, 21, 2478, 366, 2936, 40, 21, 43, 2160, 2478, 11379, 800, 3726, 3726, 31, 130, 275, 14, 3547, 1, 7563, 755, 291, 1, 6486, 5, 6, 1990, 15, 47, 31, 221, 22, 38, 259, 14, 9392, 2478, 20, 1893...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NatTypeDetection can't be used on ios === apllication on ios will not run when use NatTypeDetection (RakNet) ,but it is ok on simulator and mac
1
[ 2, 6285, 4474, 28262, 872, 92, 22, 38, 44, 147, 27, 13, 7760, 800, 3726, 3726, 21, 5727, 4663, 857, 27, 13, 7760, 129, 52, 485, 76, 275, 6285, 4474, 28262, 872, 13, 5, 4951, 2328, 6, 13, 15, 811, 32, 25, 5854, 27, 24565, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to take reference from crystal report project to Main project === In my project we are using many crystal reports files(rpt), when we are compiling my application showing error like **No disk space error** so now i want to divide crystal reports into separate project. How can i do this as separate project , when how can i take a reference in main project can any one please give me suggestion ........ Thanks Hemanth
0
[ 2, 184, 20, 247, 2801, 37, 4282, 1330, 669, 20, 407, 669, 800, 3726, 3726, 19, 51, 669, 95, 50, 568, 151, 4282, 2813, 6488, 5, 6952, 38, 6, 15, 76, 95, 50, 24378, 51, 3010, 3187, 7019, 101, 13, 1409, 251, 8582, 726, 7019, 1409...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[iOS]-Remove view 1 after replaced by view2 === I have a small code to display image 1 and after 2 seconds replace image1 by image2 with animation below UIImageView *view1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 410, 1020, 400)]; UIImage *image = [UIImage imageNamed:@"img.jpeg"]; view1.image = image; [self.view addSubview:view1]; UIImageView *view2 = [[UIImageView alloc] init ]; view2.frame = CGRectMake(0, 410, 0, 400); view2.image = [UIImage imageNamed:@"bien.jpeg"]; [self.view addSubview:view2]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.8]; [UIView setAnimationDelay:2]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(removeView: view1:)]; view2.frame = CGRectMake(0, 410, 800, 400); [UIView commitAnimations]; and function removeView to remove view1 from superview below: -(void)removeView: (UIImageView *)view1{ [view1 removeFromSuperview]; } So i dont know why my function to remove view1 from superview not work, please help me! Thanks alot...
0
[ 2, 636, 7760, 500, 8, 99, 16598, 1418, 137, 75, 1141, 34, 1418, 135, 800, 3726, 3726, 31, 57, 21, 284, 1797, 20, 3042, 1961, 137, 17, 75, 172, 2582, 3934, 1961, 165, 34, 1961, 135, 29, 6236, 1021, 13, 5661, 22039, 4725, 1637, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
could not load file or assembly, Tried all solution on net === Tried every solution found on the net, but still couldn't fix my error: on 64 bit windows 2008 R2 here my error log: Server Error in '/npp' Application. enter code here Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded. === Pre-bind state information === LOG: User = Unknown LOG: DisplayName = AjaxControlToolkit (Partial) LOG: Appbase = file:///C:/inetpub/wwwroot/npp/ LOG: Initial PrivatePath = C:\inetpub\wwwroot\npp\bin Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\inetpub\wwwroot\npp\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/npp/13400f43/eee46b06/AjaxControlToolkit.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/npp/13400f43/eee46b06/AjaxControlToolkit/AjaxControlToolkit.DLL. LOG: Attempting download of new URL file:///C:/inetpub/wwwroot/npp/bin/AjaxControlToolkit.DLL. LOG: Using application configuration file: C:\inetpub\wwwroot\npp\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. LOG: Post-policy reference: AjaxControlToolkit, Version=3.0.30512.27788, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated. Stack Trace: [FileLoadException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.] [FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=3.0.30512.27788, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. Access is denied.] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190 [ConfigurationErrorsException: Could not load file or assembly 'AjaxControlToolkit, Version=3.0.30512.27788, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. Access is denied.] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11241896 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +388 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +232 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +48 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +210 System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +76 System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +283 System.Web.Compilation.BuildManager.CompileGlobalAsax() +50 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676 [HttpException (0x80004005): Could not load file or assembly 'AjaxControlToolkit, Version=3.0.30512.27788, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. Access is denied.] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025 [HttpException (0x80004005): Could not load file or assembly 'AjaxControlToolkit, Version=3.0.30512.27788, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. Access is denied.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4355316 Many thanks for your help I tried to give permission to temporary file, give permission to everyone on iis folder and Temporary file,
0
[ 2, 110, 52, 6305, 3893, 54, 1475, 15, 794, 65, 4295, 27, 4275, 800, 3726, 3726, 794, 352, 4295, 216, 27, 14, 4275, 15, 47, 174, 711, 22, 38, 6098, 51, 7019, 45, 27, 4384, 1142, 1936, 570, 761, 135, 235, 51, 7019, 6738, 45, 812...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using string methods to change DOM element parameters in Javascript Objects === If I have an object : function myClass(id) { this.em = document.getElementById(id); this.html = function(data) { this.em.html = data; } } *Now I can :* var em = new MyClass("id"); em.html("NEW HTML HERE"); *I need :* em.html = "NEW HTML HERE"; **Is It possible?**
0
[ 2, 568, 3724, 3195, 20, 753, 11859, 4520, 12905, 19, 8247, 8741, 3916, 800, 3726, 3726, 100, 31, 57, 40, 3095, 13, 45, 1990, 51, 1898, 5, 1340, 6, 13, 1, 48, 9, 1503, 800, 4492, 9, 3060, 27567, 779, 1340, 5, 1340, 6, 73, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
imap fetchbody text/plain header === I need to fetch only the text/plain part of a mime message(mutlipart or non-multipart) without loading the complete the message. Also the headers of only the text/plain part. I am using imap_fetchstructure to first fetch the structure of the mime message. Then if its a multipart then iterate over all the parts and find the Plain part. To fetch the body I am using imap_fetchbody for the text/plain part and then using imap_fetchmime get the headers of the text/plain part only. Is there a better way to directly fetch the text/plain part and its headers of a multipart or non-multipart mime message.
1
[ 2, 31, 15022, 18312, 9760, 1854, 118, 9897, 108, 157, 106, 800, 3726, 3726, 31, 376, 20, 18312, 104, 14, 1854, 118, 9897, 108, 141, 16, 21, 26193, 2802, 5, 7903, 1210, 3091, 54, 538, 8, 21531, 3091, 6, 366, 12797, 14, 1279, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spring Directory Listener === I'm creating a web application that uses **Apache Tomcat (Latest)**, **Spring 3**, **Struts2** and **Hibernate**. I need to have a listener that observes a directory for any new XML files that appear. While the web application is deployed onto Tomcat and running it should keep doing this. 1. What method is recommended when doing something like this, using these frameworks? 2. Are there any examples that I can look at to assist with the beginning stages?
0
[ 2, 1573, 16755, 21772, 800, 3726, 3726, 31, 22, 79, 2936, 21, 2741, 3010, 30, 2027, 13, 1409, 7738, 2569, 2067, 5782, 13, 5, 6554, 384, 6, 1409, 15, 13, 1409, 15827, 203, 1409, 15, 13, 1409, 11602, 38, 18, 135, 1409, 17, 13, 140...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Clone Colorbox Image Link with JQuery === In Drupal7 I use colorbox and I need to clone a colorbox image link (the first of all colorbox links on the loaded page) and add it onto a div-tag. how could I do that with javascript/jquery? thnx!
0
[ 2, 13871, 1665, 5309, 1961, 3508, 29, 487, 8190, 93, 800, 3726, 3726, 19, 15708, 6720, 465, 31, 275, 1665, 5309, 17, 31, 376, 20, 13871, 21, 1665, 5309, 1961, 3508, 13, 5, 124, 64, 16, 65, 1665, 5309, 6271, 27, 14, 8572, 2478, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any way to make focus one of the ImageView in GridView by default? === I want first ImageView(in GridView) to be focused by default when I launch the application. I have tried 1). setSelection(0) on instance of GridView 2). setFocusableInTouchMode(true) on particular ImageView in getView() of Adapter that I have used to inflate the GridView. but none of them has worked. Any help and guidance in this regard will be well appreciated.
0
[ 2, 25, 80, 186, 161, 20, 233, 1776, 53, 16, 14, 1961, 4725, 19, 7354, 4725, 34, 12838, 60, 800, 3726, 3726, 31, 259, 64, 1961, 4725, 5, 108, 7354, 4725, 6, 20, 44, 2604, 34, 12838, 76, 31, 3394, 14, 3010, 9, 31, 57, 794, 137...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using Silvelight Themes in ResourceDictionary Styles === Im developing a silverlight application that uses silverlight theme. in order to achieve it I've wrapped main page layoutRoot grid with Theme as follows: <**UserControl** xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" x:Class="ThemeApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:ThemeApp" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <**toolkit:Theme** x:Name="ThemeContainer" ThemeUri="/System.Windows.Controls.Theming.TwilightBlue;component/Theme.xaml"> <**Grid x:Name="LayoutRoot"**> (rest of the xaml...) </Grid> </toolkit:Theme> </UserControl> This works fine, except for controls that uses explicit style with a setter of template. for instance: <Style TargetType="controls:ChildWindow" x:Key="Pb_ChildWindowStyle_withTheme"> <Setter Property="IsTabStop" Value="false" /> <Setter Property="TabNavigation" Value="Cycle" /> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="HorizontalContentAlignment" Value="Stretch" /> <Setter Property="VerticalContentAlignment" Value="Stretch" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="controls:ChildWindow"> <toolkit:Theme x:Name="ThemeContainer" ThemeUri="/System.Windows.Controls.Theming.TwilightBlue;component/Theme.xaml"> <Grid x:Name="Root"> <Grid.Resources> <Style x:Key="ButtonStyle" TargetType="Button"> <Setter Property="Background" Value="#FF1F3B53" /> <Setter Property="Foreground" Value="#FF000000" /> <Setter Property="Padding" Value="3" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush"> <Setter.Value> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFA3AEB9" Offset="0" /> <GradientStop Color="#FF8399A9" Offset="0.375" /> <GradientStop Color="#FF718597" Offset="0.375" /> <GradientStop Color="#FF617584" Offset="1" /> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Height="14" Background="#02FFFFFF" x:Name="grid"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal" /> <VisualState x:Name="MouseOver"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz2" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz1" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz0" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.95" /> </Storyboard> </VisualState> <VisualState x:Name="Pressed"> <Storyboard> <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.85" /> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz2" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz1" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="X_Fuzz0" Storyboard.TargetProperty="Visibility"> <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" /> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Disabled"> <Storyboard> <DoubleAnimation Duration="0" Storyboard.TargetName="X" Storyboard.TargetProperty="Opacity" To="0.5" /> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#14C51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz2" Stroke="#14C51900" Height="8" VerticalAlignment="Center" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"> <Path.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="1.3" ScaleY="1.3" /> </TransformGroup> </Path.RenderTransform> </Path> <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#1EC51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz1" Stroke="#1EC51900" Height="8" VerticalAlignment="Center" Opacity="1" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"> <Path.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="1.1" ScaleY="1.1" /> </TransformGroup> </Path.RenderTransform> </Path> <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#FFC51900" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X_Fuzz0" Stroke="#FFC51900" Height="8" VerticalAlignment="Center" Opacity="1" Visibility="Collapsed" /> <Path HorizontalAlignment="Center" Margin="0,-1,0,0" Width="9" Fill="#FFFFFFFF" Stretch="Fill" Data="F1 M 6.742676,3.852539 L 9.110840,1.559570 L 8.910645,0.500000 L 6.838379,0.500000 L 4.902832,2.435547 L 2.967285,0.500000 L 0.895020,0.500000 L 0.694824,1.559570 L 3.062988,3.852539 L 0.527832,6.351563 L 0.689941,7.600586 L 2.967285,7.600586 L 4.897949,5.575195 L 6.854004,7.600586 L 9.115723,7.600586 L 9.277832,6.351563 L 6.742676,3.852539 Z" x:Name="X" Height="8" VerticalAlignment="Center" Opacity="0.7"> <Path.Stroke> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF313131" Offset="1" /> <GradientStop Color="#FF8E9092" Offset="0" /> </LinearGradientBrush> </Path.Stroke> </Path> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Grid.Resources> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="WindowStates"> <VisualState x:Name="Open"> <Storyboard> <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity"> <EasingDoubleKeyFrame KeyTime="0" Value="0" /> <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="1" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"> <SplineDoubleKeyFrame KeyTime="0" Value="0" /> <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0" /> <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1" /> <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05" /> <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"> <SplineDoubleKeyFrame KeyTime="0" Value="0" /> <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="0" /> <SplineDoubleKeyFrame KeyTime="00:00:00.4" Value="1" /> <SplineDoubleKeyFrame KeySpline="0,0,0.5,1" KeyTime="00:00:00.45" Value="1.05" /> <SplineDoubleKeyFrame KeyTime="00:00:00.55" Value="1" /> </DoubleAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Closed"> <Storyboard> <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="Overlay" Storyboard.TargetProperty="Opacity"> <EasingDoubleKeyFrame KeyTime="0" Value="1" /> <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"> <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" /> <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05" /> <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0" /> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="0" Storyboard.TargetName="ContentRoot" Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"> <SplineDoubleKeyFrame KeyTime="00:00:00.2" Value="1" /> <SplineDoubleKeyFrame KeyTime="00:00:00.25" Value="1.05" /> <SplineDoubleKeyFrame KeyTime="00:00:00.45" Value="0" /> </DoubleAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Grid x:Name="Overlay" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0" Background="{TemplateBinding OverlayBrush}" Opacity="{TemplateBinding OverlayOpacity}" /> <Grid x:Name="ContentRoot" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" RenderTransformOrigin="0.5,0.5" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"> <Grid.RenderTransform> <TransformGroup> <ScaleTransform /> <SkewTransform /> <RotateTransform /> <TranslateTransform /> </TransformGroup> </Grid.RenderTransform> <Border BorderThickness="1" CornerRadius="5" BorderBrush="#14000000" Background="#14000000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="-1" /> <Border BorderThickness="1" CornerRadius="5" BorderBrush="#0F000000" Background="#0F000000" HorizontalAlignment="Stretch" Margin="-2" VerticalAlignment="Stretch" /> <Border BorderThickness="1" CornerRadius="5" BorderBrush="#0C000000" Background="#0C000000" HorizontalAlignment="Stretch" Margin="-3" VerticalAlignment="Stretch" /> <Border BorderThickness="1" CornerRadius="5" BorderBrush="#0A000000" Background="#0A000000" HorizontalAlignment="Stretch" Margin="-4" VerticalAlignment="Stretch" /> <Border Background="#FFFFFFFF" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="5"> <Border CornerRadius="1.5" Margin="1"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFE5E8EB" Offset="1" /> <GradientStop Color="#FFF6F8F9" Offset="0" /> </LinearGradientBrush> </Border.Background> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions> <Border x:Name="Chrome" Width="Auto" BorderBrush="#FFFFFFFF" BorderThickness="0,0,0,0" CornerRadius="5,5,0,0"> <Border.Background> <!--<LinearGradientBrush EndPoint="0.5,0.528" StartPoint="0.5,0"> <GradientStop Color="#FFE5E8EB" Offset="1" /> <GradientStop Color="#FFFEFEFE" Offset="0" /> </LinearGradientBrush>--> <SolidColorBrush Color="#FF808080"/> </Border.Background> <Grid Height="Auto" Width="Auto"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition Width="30" /> </Grid.ColumnDefinitions> <ContentControl Content="{TemplateBinding Title}" IsTabStop="False" FontFamily="Arial" FontSize="12" FontWeight="Bold" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="6,0,6,0" /> <Button x:Name="CloseButton" Grid.Column="1" IsTabStop="False" HorizontalAlignment="Center" VerticalAlignment="Center" Width="15" Height="14" Style="{StaticResource ButtonStyle}" /> </Grid> </Border> <Border Background="{TemplateBinding Background}" Margin="0" Grid.Row="1"> <!--GroupsPageTitleColor: #FFC0C3C5, GroupsPageDisabledListBG: #FFC1C1C1--> <ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> </Border> </Grid> </Border> </Border> </Grid> </Grid> </toolkit:Theme> </ControlTemplate> </Setter.Value> </Setter> </Style> I tried to wrap the grid in 'Setter.Value' (Root in the example above), the same way I wrapped LayoutRoot grid in my main page xaml with no success (application throws an exception). Is there a way to apply theme on styles in resource dictionary?
0
[ 2, 568, 21064, 62, 3130, 6876, 19, 6577, 22595, 1857, 6443, 800, 3726, 3726, 797, 3561, 21, 1172, 3130, 3010, 30, 2027, 1172, 3130, 3184, 9, 19, 389, 20, 4689, 32, 31, 22, 195, 3684, 407, 2478, 9106, 14032, 7354, 29, 3184, 28, 241...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What query has to be generate so that all comments should sort along with their subcomments === I have a comment posting system in which different users post their comments. And also there is a subcomment feature, in which users give their subcomments also, like them, delete them too. I store all comments and subcomments in one table named main_reviews which have a parent id field, by which I detect which is comment and which is subcomment. Main comment have a parent id value of 0, while subcomments have the parent id value of the id, of which they are subcomments. So when I show all comments and subcomments on page using php function mysql_fetch_array(), I want to sort out all comments and subcomments using one query. I used following query: mysql_query("select * from main_reviews where p_id=0 order by id desc"); This display all correct data. But the twist is here: I want to sort all comments along with its subcomments, means when a user post a subcomment, that particular subcomment along with its main comment should be displayed on top like facebook. So what query has to be generate whether using a 'union' or 'in' clause or anything else, so that all comments are sorted along with their subcomments, even if their subcomments are posted later. And I am sorry, if there is any grammatical mistake, cause I am from a non english country.
0
[ 2, 98, 25597, 63, 20, 44, 7920, 86, 30, 65, 7534, 378, 2058, 303, 29, 66, 972, 960, 6601, 800, 3726, 3726, 31, 57, 21, 6484, 15669, 329, 19, 56, 421, 3878, 678, 66, 7534, 9, 17, 67, 80, 25, 21, 972, 960, 1130, 1580, 15, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
NSDateFormatter's dateFromString. Wrong results when converting trough "week of year" based format === Here is the code: NSDate *first = [NSDate dateWithTimeIntervalSinceNow: 84600*4]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat: @"dd MMM YYYY HH:mm"]; NSString *firstConverted = [formatter stringFromDate: first]; NSDate *result = [[formatter dateFromString: firstConverted] dateByAddingTimeInterval: [[NSTimeZone localTimeZone]secondsFromGMT]]; NSLog(@"\nFirst: %@\nConverted: %@\nResult: %@", first, firstConverted, result); Output is: First: 2012-07-28 06:00:08 +0000 Converted: 28 Jul 2012 10:00 Result: 2011-12-25 10:00:00 +0000 Error lays in last line. However, changing date format to `dd MMM yyyy HH:mm` or `dd MMM uuuu HH:mm` solves this problem. I want to understand why `YYYY` doesn't work as should (shouldn't it?). There is some seems error-related sentence about `YYYY` in [documentation][1] (link mentioned [here][2]): > May not always be the same value as calendar year. But that definitely doesn't mean that parsing must be error-prone. What I'm looking for is some explanations of this strange behavior. [1]: http://unicode.org/reports/tr35/tr35-10.html#Date_Format_Patterns [2]: http://developer.apple.com/library/ios/DOCUMENTATION/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW13
0
[ 2, 13, 2172, 8209, 23588, 815, 22, 18, 1231, 2665, 11130, 9, 1389, 1736, 76, 19583, 22032, 13, 7, 7219, 16, 159, 7, 432, 2595, 800, 3726, 3726, 235, 25, 14, 1797, 45, 13, 2172, 8209, 1637, 3552, 800, 636, 2172, 8209, 1231, 1410, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Auto Click a button on a web page === I need to auto click a button on a web page. Basically i have a user interface to see the logs of the network printer. This page already has a option 'Save in CSV Format'.When i click this, i get a popup box which asks if you want to run or save that file. The issue is: I am creating another web page where i want that if a user clicks on 'Clickme' button, he automatically gets that popup box, which appears when i click on the 'Save in CSV Format' in that User Interface. Using HTTPFOX, i found out that 'Save in CSV Format' has this detail: <td bgcolor="#333333" height="27" align="right"><input type="button" value="Save in CSV Format... " onClick="get_loglist()"></td> Is there any way i can do this? Thanks in advance.
0
[ 2, 3108, 10840, 21, 5167, 27, 21, 2741, 2478, 800, 3726, 3726, 31, 376, 20, 3108, 10840, 21, 5167, 27, 21, 2741, 2478, 9, 11374, 31, 57, 21, 4155, 6573, 20, 196, 14, 18893, 16, 14, 982, 12925, 9, 48, 2478, 614, 63, 21, 4255, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does void* mean and how to use it? === Today when I was reading others' code, I saw something like void *func(void* i);, what does this void* mean here for the function name and for the variable type, respectively? In addition, when do we need to use this kind of weird pointer-like thing and how to use it? The latter question may be too general but right now I can't find a particular circumstance for it.
0
[ 2, 98, 630, 11364, 2483, 884, 17, 184, 20, 275, 32, 60, 800, 3726, 3726, 786, 76, 31, 23, 1876, 654, 22, 1797, 15, 31, 441, 301, 101, 11364, 1637, 16638, 150, 5, 2625, 1340, 2483, 31, 6, 73, 15, 98, 630, 48, 11364, 2483, 884, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
img src code not render from javascript === I'm using ajax json to return some data. Objects that are returned using json have image path which I need to render. Here's the code inside my js function data = '<div class="articleWrapper"><div class="articleImgThumb">' + '<img src="'+item.ImagePath;'" />' + '</div></div>'; Something I'm doing wrong cause this code is rendered in my view as <div class="articleWrapper"> <div class="articleImgThumb"> // here should be img src code </div> </div> Thanks
0
[ 2, 797, 263, 13, 18, 5453, 1797, 52, 16535, 37, 8247, 8741, 800, 3726, 3726, 31, 22, 79, 568, 20624, 487, 528, 20, 788, 109, 1054, 9, 3916, 30, 50, 587, 568, 487, 528, 57, 1961, 2013, 56, 31, 376, 20, 16535, 9, 235, 22, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cannot display multiple Highcharts on a single page === I am trying to display 3 Highcharts-generated graphs on one page. I have loaded up the first two just fine but when I add the Javascript for the third all of them do not show. I have duplicated my code in this JSFiddle: http://jsfiddle.net/ricburton/bCU2E/ Any help or guidance would be really appreciated. I have checked out this answer: http://stackoverflow.com/questions/8253590/manage-multiple-highchart-charts-in-a-single-webpage?rq=1 And googled around a lot. I am sure it is my limited understanding of Javascript holding me back.
0
[ 2, 1967, 3042, 1886, 183, 5433, 38, 18, 27, 21, 345, 2478, 800, 3726, 3726, 31, 589, 749, 20, 3042, 203, 183, 5433, 38, 18, 8, 25314, 7210, 18, 27, 53, 2478, 9, 31, 57, 8572, 71, 14, 64, 81, 114, 1123, 47, 76, 31, 3547, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to deal with a mounted EC2 volume during URL swap? === I use EC2 volume as a storage of data (Lucene index, in my case). I mount this 50Gb volume to an instance from Java application, right after initialization. Every time an environment is started my web app attached the EC2 volume to the EBS instance it is running on, mounts the disc, and starts using the data there (for read **and** write). Everything works fine. Now I'm trying to implement URL swap mechanism, which means that I will start a new environment every time I want to re-deploy the application. But the EC2 volume will still be attached to the old environment. The conflict is obvious. I don't know how this can be possibly resolved. Any ideas? (I posted this question already to [AWS forum](https://forums.aws.amazon.com/thread.jspa?threadID=99408), but didn't get any reasonable answer).
0
[ 2, 184, 20, 1183, 29, 21, 4897, 6695, 135, 2310, 112, 287, 6362, 17150, 60, 800, 3726, 3726, 31, 275, 6695, 135, 2310, 28, 21, 4326, 16, 1054, 13, 5, 2377, 13739, 4348, 15, 19, 51, 610, 6, 9, 31, 2149, 48, 1222, 11400, 2310, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Knockout.js equivalent to Kendo MVVM nested binding === We are currently using Kendo UI and its integrated MVVM framework to control the forms in our application on the client side (e.g. input validation, disabling/enabling form fields based on conditions). As we hit some limitations of the Kendo MVVM framework, we plan to switch to Knockout/Knockout-Kendo.js. As our forms are highly dynamic, one critical feature for us are Kendo MVVM's nested bindings. They allow us to monitor fields of dynamically composed forms which aren't known up-front: http://docs.kendoui.com/getting-started/framework/mvvm/overview#bindings Looking at the knockout.js docs, I couldn't find an equivalent there. How can I emulate a similar api in knockout.js?
0
[ 2, 11676, 9, 728, 18, 4602, 20, 2639, 537, 17967, 20147, 5618, 69, 8728, 800, 3726, 3726, 95, 50, 871, 568, 2639, 537, 13, 5661, 17, 82, 5547, 17967, 20147, 6596, 20, 569, 14, 1997, 19, 318, 3010, 27, 14, 6819, 270, 13, 5, 62, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Force GAE to update all files on deployment === Is there a way to force GAE to upload and update all files, even if it thinks it doesn't require any updations? Clarification - If I make quick back-to-back updates, I find that certain files, that were definitely modified, refuse to be updated online. Apart from assigning version numbers to force the update, which is very painful, is there another way?
0
[ 2, 558, 13, 17721, 20, 11100, 65, 6488, 27, 10475, 800, 3726, 3726, 25, 80, 21, 161, 20, 558, 13, 17721, 20, 71, 8294, 17, 11100, 65, 6488, 15, 166, 100, 32, 7973, 32, 1437, 22, 38, 4077, 186, 71, 43, 7504, 60, 13, 12078, 4634...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Delete a record from Access database based on name === Database Access 2007 with VB.net: I've db name: sample table name: test Columns: empname[primary key], id,sal I want to delete the record based on name. for eg: my name col contains names like james,rocky,gates etc. What I want to do is, if I press delete button I should get pop-up message box asking to enter employee name, after entering if the emp name exists then it should delete it and update the access database and if the emp name not found it should say "No record exists with this name". 2nd question is: I am displaying records in DataGridview, I want to modify the particular record from datagridview that should inturn updates the access database. I would be great help for me, if I get this working. Thanks.
0
[ 2, 27448, 21, 571, 37, 1381, 6018, 432, 27, 204, 800, 3726, 3726, 6018, 1381, 624, 29, 13, 20468, 9, 2328, 45, 31, 22, 195, 13, 9007, 204, 45, 5717, 859, 204, 45, 1289, 7498, 45, 16453, 7259, 2558, 29584, 1246, 500, 15, 4924, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I customize TableComparatorChooser to responds to single mouse clicks? === I have a GlazedList table, when i want to sort a column i should double click. I want to change it to a single click. **Does anyone know how to do it?**
0
[ 2, 184, 92, 31, 5816, 2952, 859, 960, 3574, 3457, 2613, 759, 106, 20, 4590, 18, 20, 345, 7567, 10840, 18, 60, 800, 3726, 3726, 31, 57, 21, 23533, 5739, 859, 15, 76, 31, 259, 20, 2058, 21, 4698, 31, 378, 1494, 10840, 9, 31, 259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Positioning loading indicator div at position irrespective of the screen size or resolution === in my aspx page, i have 3 td inside a table where i have placed divs to display my content.i'm using ajax to load the data inside each of the div.in the same td in which i am displaying my content div i have also placed a div to show loading indicator when the data div loads. My problem is positioning the loading indicator div when its seen through different machines with different resolution or screen size. At present my loading indicator div are of type absolute. Can any one suggest an elegant method of position my loading indicator div in the three td's so dat its correctly centered no matter whatever is the screen size or resolution. i'm using c# web application.
0
[ 2, 649, 68, 12797, 13310, 13, 12916, 35, 649, 13810, 7350, 1284, 16, 14, 2324, 1072, 54, 4302, 800, 3726, 3726, 19, 51, 28, 306, 396, 2478, 15, 31, 57, 203, 15596, 572, 21, 859, 113, 31, 57, 1037, 13, 12916, 18, 20, 3042, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
imail server can't send letter to external servers === I setup <a href='http://www.imailserver.com/'>IMail</a> mail sever. Mails inside domain works fine. But I can't send email to external server. I get next errors in log 07:27 18:28 SMTP-(68b000000011001b) Trying list.ru (0) 07:27 18:28 SMTP-(68b000000011001b) Enumerating MX records for host list.ru 07:27 18:28 SMTP-(68b000000011001b) Enumerating A records for host list.ru 07:27 18:28 SMTP-(68b000000011001b) Trying to connect to host 217.69.135.29 07:27 18:28 SMTP-(68b000000011001b) Attempting to connect to host: 217.69.135.29 07:27 18:28 SMTP-(68b000000011001b) Connecting socket to SMTP service on host <217.69.135.29> using tcp protocol. 07:27 18:28 SMTP-(68b000000011001b) using source IP for test.gconnect.mobi [192.168.0.105] 07:27 18:28 SMTPD(68b000000011001b) [192.168.0.117] C:\Program Files (x86)\Ipswitch\IMail\spool\D68b000000011001b.SMD 155 07:27 18:28 SMTP-(68b000000011001b) Connect fail 217.69.135.29 [217.69.135.29]: connection timed out 07:27 18:28 SMTP-(68b000000011001b) requeuing C:\Program Files (x86)\Ipswitch\IMail\spool\Q68b000000011001b.SMD R0 T1 07:27 18:28 SMTP-(68b000000011001b) finished C:\Program Files (x86)\Ipswitch\IMail\spool\Q68b000000011001b.SMD status=3 What I can check for find reason of problem? Thanks
0
[ 2, 31, 8079, 8128, 92, 22, 38, 2660, 1748, 20, 4886, 17595, 800, 3726, 3726, 31, 18161, 13, 1, 58, 746, 14057, 3726, 22, 21127, 6903, 6483, 9, 49, 8079, 10321, 106, 9, 960, 118, 22, 1, 49, 8079, 1, 118, 58, 1, 4216, 15114, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android - admob and SurfaceView issue === i am trying to start using admob, but it seems to be harder than i thought. I just wanted to write a little test app, in which i would draw something on a surface view and add an admob example to it. in my main activity i do the following in the onCreate method: the AndroidFastRenderView is my implementation of SurfaceView. requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); boolean isLandscape = getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; int frameBufferWidth = isLandscape ? 480 : 320; int frameBufferHeight = isLandscape ? 270 : 430; Bitmap frameBuffer = Bitmap.createBitmap(frameBufferWidth, frameBufferHeight, Config.RGB_565); renderView = new AndroidFastRenderView(this, frameBuffer); graphics = new AndroidGraphics(getAssets(), frameBuffer); adView = new AdView(this, AdSize.BANNER, "a1500edd85338a9"); adView.setVisibility(View.VISIBLE); FrameLayout layout = new FrameLayout(this); FrameLayout.LayoutParams gameParams = new FrameLayout.LayoutParams( FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT); FrameLayout.LayoutParams adsParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT); layout.addView(adView, 0, adsParams); layout.addView(renderView, 1, gameParams); setContentView(layout); AdRequest adRequest = new AdRequest(); adRequest.addTestDevice(AdRequest.TEST_EMULATOR); adView.loadAd(adRequest); When i do this, the whole screen is filled with the AndroidFastRenderView. However, when i do not add the AndroidFastRenderView the ad appears. So i think the problem is that, maybe the AndroidFastRenderView is drawn above my ad(maybe i did something wrong with the size of my framebuffer) or that the AndroidFastRenderView "steals" the space of the ad. i hope you understand what my problem is and that anyone can help me solve my problem yours, Lukas
0
[ 2, 13005, 13, 8, 21, 43, 1293, 220, 17, 1490, 4725, 1513, 800, 3726, 3726, 31, 589, 749, 20, 799, 568, 21, 43, 1293, 220, 15, 47, 32, 2206, 20, 44, 5229, 119, 31, 289, 9, 31, 114, 417, 20, 2757, 21, 265, 1289, 4865, 15, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Handling Multiple threads with TCP === I am trying to implement a chat application, and have a design choice to make about using TCP or UDP for the messaging exchange between peers. I want to use TCP but am having the following issue. Problem Scenario: Peer A is listening on a well known port, (say 5555). When peer B wants to send message to peer A, it connects to the port 5555 on A. Peer A accepts the connection and starts a new thread to deal the communication with peer B, so that other peers (say peer C) are able to connect to peer A's 5555 port. Now the problem is that its not a request/response protocol, so I am confused that if peer A doesn't reply to peer B for any reason, then the subsequent messages sent by B will be delivered to port 5555 on peer A ? and peer A will create separate threads for each of the messages received ? Using UDP will probably solve this problem and I wont have to create separate threads for communicating with each peer and everyone can send the messages to the same well known port. But I want to use TCP for guaranteeing that the messages will be delivered. Any ideas what would be a good way to handle this problem and use only one thread for communication with one peer ?
0
[ 2, 7988, 1886, 20396, 29, 13, 38, 7439, 800, 3726, 3726, 31, 589, 749, 20, 8713, 21, 6615, 3010, 15, 17, 57, 21, 704, 1837, 20, 233, 88, 568, 13, 38, 7439, 54, 287, 7431, 26, 14, 26437, 1950, 128, 14491, 9, 31, 259, 20, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Save image url or save image file in sql database? === We can save an image with 2 way 1. upload image in Server and save image url in Database. 2. save directly image into database which one is better?
0
[ 2, 2079, 1961, 287, 6362, 54, 2079, 1961, 3893, 19, 4444, 255, 6018, 60, 800, 3726, 3726, 95, 92, 2079, 40, 1961, 29, 172, 161, 137, 9, 71, 8294, 1961, 19, 8128, 17, 2079, 1961, 287, 6362, 19, 6018, 9, 172, 9, 2079, 1703, 1961, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Knockout Maximum Call Stack After Subscribe and AJAX Data Send === I'm having a difficult time debugging this infinite loop I've created. In Knockout.js, I've binded a couple elements' change event using the `data-bind="event:{change:save_data}"` markup. Then on the `save_data` function, I have it running an ajax PUT to the server. var ViewModel = function(config) { var self = this; // initial call to mapping to create the object properties ko.mapping.fromJS(config, {}, self); self.save_data = function() { $('#ajax-console').append('<p>Saving...</p>'); $.ajax({ url: '/echo/json/', data: ko.toJS(self), type:'put', success: function(data) { }, dataType: 'json' }); } }; Running this and changing either the input or the checkbox gives me the following error in Chrome: `RangeError: Maximum call stack size exceeded`. What am I doing wrong? Evidently something in the AJAX call is changing one of the field's values. A workaround would be to detect if the AJAX call is already in route and not call it, but I'd like to understand what's going on. Here are my fiddles: Broken example: http://jsfiddle.net/btV9t/10/ Working example: http://jsfiddle.net/btV9t/8/ Thanks all.
0
[ 2, 11676, 2979, 645, 7566, 75, 13, 20330, 17, 20624, 1054, 2660, 800, 3726, 3726, 31, 22, 79, 452, 21, 1956, 85, 121, 16254, 2762, 48, 9698, 5293, 31, 22, 195, 679, 9, 19, 11676, 9, 728, 18, 15, 31, 22, 195, 10193, 69, 21, 133...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ContentValues entry is being converted to NULL === I am having some trouble with ContentValues for input to a database in my program that is proving to be quite difficult to understand. I have a ContentValues object which I add a 50 or so entries to and everything works great, except for one entry which is stored as "null". Based on LogCat entries, I know for a fact that the data going into the the ContentValues is not null. The relevant code: if (database.isOpen() && !database.isReadOnly()) { //Check that the database is open and not read only Log.d(TAG, "Entry string: " + data.getEntryString()); Log.d(TAG, "Key: " + Helper.COLUMN_ENTRY_STRING); ContentValues values = new ContentValues(); //Create a new ContentValues object to store key value pairs for insertion //Various values.put() calls... values.put(Helper.COLUMN_ENTRY_STRING, data.getEntryString()); Log.d(TAG, "Entry string from values: " + values.getAsString(Helper.COLUMN_ENTRY_STRING)); //Proceed with database insert here } And the LogCat responses: 07-27 08:58:47.909: D/Handler(18020): Entry string: Something 07-27 08:58:47.909: D/Handler(18020): Key: Entry_String 07-27 08:58:47.909: D/Handler(18020): Entry string from values: null I have checked over the code several times and I can find no explanation for this. Any help will be appreciated.
0
[ 2, 2331, 15165, 18, 2792, 25, 142, 3494, 20, 16203, 800, 3726, 3726, 31, 589, 452, 109, 2572, 29, 2331, 15165, 18, 26, 6367, 20, 21, 6018, 19, 51, 625, 30, 25, 15333, 20, 44, 1450, 1956, 20, 1369, 9, 31, 57, 21, 2331, 15165, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web application gets wrong coordinates with phone using navigator.geolocation.getcurrentposition === I pieced together javascript code mostly from the samples into a web page. I'm testing this on a Galaxy Nexus phone (Android 4.0.4, Chrome and "Browser" browsers) to capture the navigator.geolocation.getcurrentposition and put push pins on a map for each spot I capture. The results have been very haphazard. I turned on enableHighAccuracy, and sometimes I see a blip from my GPS icon in the toolbar as if it accessed it. But my coordinates are anywhere from 1/2 mile to 2 miles away. Is usage of this through a webpage not supposed to give decent results? I know if I wrote it in an Android app, I could probably tell it "hey, get the GPS". But I'm attempting it with the HTML5 access, and you basically get the best answer the device can give you at the moment. But still, 2 miles away??? The phone's GPS works fine with such apps as the Google Maps. Further, I had someone test with an iPhone, and it was pulling within 50 feet or so, using the same webpage. Any tips or pointers?
0
[ 2, 2741, 3010, 3049, 1389, 13714, 29, 1132, 568, 21432, 9, 834, 111, 19032, 9, 3060, 17657, 9339, 800, 3726, 3726, 31, 1855, 43, 429, 8247, 8741, 1797, 1555, 37, 14, 7855, 77, 21, 2741, 2478, 9, 31, 22, 79, 4431, 48, 27, 21, 935...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Contants vs. objects instantiated on demand - which is optimal? === Take the following method (written in Ruby but this question could be applied to most OO languages) # Getter method which returns an alert def alertView _alertView = AlertView.new _alertView.title = "This is the title" _alertView.body = "This is the body of my alert" _alertView end Suppose this method is called regularly throughout the lifecycle of an application. The title and body attribute strings would be instantiated as new objects each time. To optimise this, we could do the following: ALERT_TITLE = "This is the title" ALERT_BODY = "This is the body of my alert" # Getter method which returns an alert def alertView _alertView = AlertView.new _alertView.title = ALERT_TITLE _alertView.body = ALERT_BODY _alertView end This way, the `ALERT_TITLE` and `ALERT_BODY` strings are only instantiated once, when the class is defined, and then reused throughout the application's lifecycle. My question is: is the second approach optimal? While it means less work for the garbage collector and probably more stable memory use, it would also mean that the application is taking more memory all the time, rather than freeing objects that are not currently required. I'm torn between applying this to all of the constant strings within my application or not applying this approach at all and defining each string as and when required. A third approach would be to use class variables but the only advantage this offers over the second approach is that the variables are lazy-loaded. # Getter method which returns an alert def alertView _alertView = AlertView.new _alertView.title = @@alert_title ||= "This is the title" _alertView.body = @@alert_body ||= "This is the body of my alert" _alertView end
0
[ 2, 1065, 13186, 18, 4611, 9, 3916, 6322, 49, 1669, 27, 3888, 13, 8, 56, 25, 17586, 60, 800, 3726, 3726, 247, 14, 249, 2109, 13, 5, 6390, 19, 10811, 47, 48, 1301, 110, 44, 2435, 20, 127, 13, 4328, 2556, 6, 6926, 164, 815, 2109,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...