problem about server-side-Collection of common programming errors


  • user717236
    android webview client-server android-webview server-side
    To be succinct, I want to know how android webview works underneath the covers. I’ve scoured the Internet and cannot find an article or resource which discusses the innerworkings of the webview class. It essentially is an emulator for viewing web pages in the browser, right? Does that mean it employs a strict client-server relationship, a la the Android browser, or is it more complicated than that?Is there any reason a web page will display perfectly in the Android browser, yet produce server

  • matsko
    java ruby-on-rails server-side
    After building 5 Rails websites and having to Deal with Rails 2.3, 3.0 and 3.1 version differences, installation hassles and unexpected memory spikes with Ruby and other gotchas, I’ve decided to make the move to Java Backend Web Development using Spring. I’m aware that there is a world of difference between the two and JSP development isn’t a next step after Rails development, but my major points are that:a) Java is a much more mature, faster and efficient programming language compared to Ruby.

  • Jeremy Bader
    node.js server-side bots
    I made a bot (https://github.com/JBader89/PlugBot) for a social music site, and I’d like to have it running 24/7. I used node.js to create and run it, so I was wondering if there’s a way to use node.js to make it run continually?

  • Galen Nare
    php html server-side
    I am working on a registration page for my website, but I keep getting a syntax error no matter what I do. If I remove the entire statement, it leaves me alone but I can’t then do what I want. Here is the code:<?php $user=$pass=$mail=$name=””; $registered=true; $user = $_GET[“user”]; $file = fopen(“sparkapps_files/users.dat”,”r+”) or fopen (“sparkapps_files/users.dat”,”x+”); if (strlen($user)< “4”) {echo “Username too short! Must be at least 4 chars long!<br>”; $registered = false;}$

  • Pedr
    ruby server-side erb middleman embedded-ruby
    I have a static site generated using the excellent Middleman. It has been running happily on an Apache server. I now need to add some embedded Ruby to one of the pages (Ruby that must be evaluated at runtime, not during Middleman’s build phase). I won’t go into what form this code takes, but for this question please assume that it has to be embedded Ruby.So what are my options?

  • devrys
    gwt properties server-side
    I have a file variables.properties in my GWT application inside the war folder. The file contains a jdbc string, username and password, hence I would not like to see it on the client side in any way.My question: Is variables.properties somehow integrated into client side code at runtime when placed inside the war folder or is it safe to place it there?If it is not, where should I put it? I read the file with this code:variables = new Properties(); BufferedInputStream stream = new BufferedInputSt

  • Jarvis
    asp.net apache windows-server-2003 server-side
    I’ve heard of ASP.NET compiled DLLs which only works on Windows Server, but I would like to know if there are any other compiled server side languages?, maybe even ones for Apache server?Installation of the runtime shouldn’t be a problem because I will have physical access to the Unix/Windows servers, but if it is a CGI plugin its an added benefit since I can install it using only FTP.

  • Abdennour Toumi
    java-ee grails websocket client-side server-side
    i fail to build a app that implements websockets via Atmosphere grails plugin for the following reasons ; Chat sample isn’t available https://github.com/Atmosphere/atmosphere/tree/master/samples/chat Confusion in choosing the suitable dependencies :runtime ‘org.atmosphere:atmosphere-spade-server:jar:0.6.3’orruntime ‘org.atmosphere:atmosphere-compat-tomcat:2.0.1’orruntime ‘org.atmosphere:atmosphere-runtime:bundle:2.0.3’orruntime(‘org.atmosphere:atmosphere-jgroups:0.7’) { exclude ‘slf4j-api’ }Thi

  • Programming Enthusiast
    javascript server-side
    I am wondering how to install a Javascript runtime engine to work with an Apache HTTP server. My aim is to run server-side Javascript.Thanks in advance for any help!

  • asma
    c# asp.net client-side server-side
    I have a drop down list and it has values through 2 to 12. and two text boxes are being displayed. What I want is when user change the dropdown’s value, text boxes should be generated according to the count. Should I do this on server side? I think it would be more better if done on client side. Please help me with code samples. Thank you in advance.

  • toddysm
    server-side sniffing
    Netcraft is able to get statistics for millions of sites what web technology (PHP, ASP.NET, Java Servlet etc.) they are using on their servers. I was wondering how they do that from the outside and whether there is some script that can be used to check the server side technology for a random site?

  • Joe
    ajax server-side business-logic
    A typical stack for a web application is a database, a server with server-side code, and a user with a browser with HTML/CSS/JavaScript.Before extensive AJAX, MVC in which the controller was the server-side code rulled. A server had to route answer requests for Dynamic web pages (i.e. templated html solutions like JSP and ASP). The server to coordinate the calls to the database and decide which dynamic page to use to answer the page request. The result of all of this is that server ended up c

  • Yannis Rizos
    architecture applications cross-platform server-side
    We consider a server app development – heavily loaded with messing with big data streams. An app will be running on one powerful server. A server app will be developed in form of crossplatform application – working on Windows, Mac OS X and Linux. So same code, many platforms for stand alone server architecture. We wonder what are the benefits of distributing applications not only over threads but over processes as well, for programmers and server end users?Some people said to me that even having

  • Maverick
    asp.net server-side app-themes
    The code for the asp.net page is:<div class=”facebox_content”> <% if (CurrentUser.Role == “Free”){ %> <table cellpadding=”0″ cellspacing=”0″ style=”border-collapse:collapse;width:380px;”><tr><td>User Name :</td><td>Membership Cost :</td></tr><tr><td style=”width:190px;”><asp:TextBox ID=”txtUserName” Enabled=”false” runat=”server” Text=”<%= CurrentUser.Name %>”/></td><td style=”width:190px;”><asp:TextBox

  • Andy Hin

  • bruceiow
    javascript ajax asp.net-mvc-3 client-side server-side
    I am working on a validation routine that needs to go back to the server, perform a bit of database checking and then return to the client to display messages depending on the outcome.. I am using MVC3, Javascript, Ajax.This is my clientside:<script type=”text/javascript”> $(‘#usrid’).change(function (e) {var formData = $(“form”).serialize();$.ajax({url: “ValidateOfficers”,type: “POST”,data: formData,success: function (data) {alert(data.reponseText);},error: function (data) {alert(data.rep

  • Pantera61
    session server-side backbone.marionette
    Update – 2013-07-31So, giving a quick update to what I did to pull this off. It will require 4 pieces (Marionette/Backbone only, you will still need the web service replying to sessions requests) to effectively work. I created a Gists for anyone to look at. Feel free to update the gists and I’ll pull the code, granted that it’s free of bugs.I use jQuery, require.js, text require.js plugin, handlebars and moment.js. main.js includes all hooks for using handlebars to load the template from dis

  • DewBoy3d
    javascript node.js server-side readdir
    I am just learning server-side JavaScript so please bear with any glaring mistakes I’ve made.I am trying to write a file parser that operates on HTML files in a directory and returns a JSON string once all files have been parsed. I started it with a single file and it works fine. it loads the resource from Apache running on the same machine, injects jquery, does the parsing and returns my JSON.var request = require(‘request’),jsdom = require(‘jsdom’),sys = require(‘sys’),http = require(‘http’);h

  • Zoom Pat
    sorting datagrid dojo header server-side
    Hello I am using dojo.data.ItemFileWriteStore to draw a dojo datagrid (which works fine) and the grid shows properly. I was using client side sorting and that was also working fine. but now I need to change the sorting and do that server side. For this I am trying to use onHeaderCellClick event, using which I am able to run a javascript function.. something like gridInfo = {store: myJsonStore,structure: myStructureonHeaderCellClick:getSortedTable};Now here is the getSortedTable function which I

  • Houssem Bdr
    php jquery mysql ajax server-side
    This is my jquery code:var jsObj = {“user_id”:5, “login”:”hsm”}; var str_json = JSON.stringify(jsObj); $.post(“json_handler.php”, str_json).done(function(){alert(‘data sent successfully’);window.location = “http://localhost/quranMapping/php/json_handler.php”;}).fail(function(){alert(‘fail’);});NOTE: I made the redirection to check out where is the problem.And this is my php code (json_handler.php file):<?php//create a DB connection $con=mysqli_connect(“127.0.0.1″,”root”,””,”my_db”);$input = f

  • BlackLine
    grid extjs4 server-side summary
    I’ve created Ext.grid.Panel and now I need to make a summary with data calculated on server. And I have no grouping in that grid.In feature ftype: ‘summary’ there is no such property like ‘remoteRoot’. Is there any opportunity to create this summary withou grouping?

  • Gary Kephart
    yui pagination server-side
    I’m using YUI 2.7.0, and I’ve gotten the client-side pagination down, and am now trying to get the server-side pagination down (The query could possibly return thousands of results). Right now, no results are being shown (I get the “No records found.” message). Can’t seem to find an answer on the web. The call to alert() shows the correct numbers, so I know something is being returned from the server. I suspect the issue is in jobsCallback or handleDataReturnPayload but am stuck from there. Any

  • Eric
    php mysql database web server-side
    I am making a simple page to test a database connection. When I tried accessing it from my browser, it says: Server errorThe website encountered an error while retrieving http://localhost:8888/blah/blah/test.php. It may be down for maintenance or configured incorrectly.Here are some suggestions:Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.All I am doing is connecting to a database

  • Federico Giust
    php javascript ajax datatables server-side
    I’m trying to use the DataTables (CRUD) plugin that can be found on DataTables Data Manager (CRUD) Add-onSo far everything is working fine except when I try to add a new record. I’ve followed the instruction on the example on this link Adding Records and the WiKi ExampleThis is the code I’m using to insert the new record// Open the db connection$link = dbConnect(‘dbname’);$params = array();$options = array( “Scrollable” => SQLSRV_CURSOR_KEYSET );// Prepare the insert $updateQuery = “INSERT I

  • Derek
    authentication openssl client-side server-side
    I am trying to run the following command:[root@localhost certs]# openssl s_client -connect localhost:7043 -cert /opt/openssl-1.0.0a/ssl/certwork_client/client.crt -key /opt/openssl-1.0.0a/ssl/certwork_client/client.key -CAfile /opt/openssl-1.0.0a/ssl/certwork/ca.crt -showcerts -state -verify 2 verify depth is 2 CONNECTED(00000003) SSL_connect:before/connect initialization SSL_connect:SSLv2/v3 write client hello A SSL_connect:SSLv3 read server hello A depth=1 C = US, ST = Florida, L = Orlando, O

  • KItis
    weblogic server-side weblogic-10.x weblogic11g
    I have faced an issue in reseting weblogic admin user password. Following are the steps i have executed in sequence.please help to understand why it is not working this way I have 2 managed instances running on two separate computers. Step 1. shutdown the admin server instance ( i did not shutdown the node manager and other 2 manage server instancesStep 2. Set the environment variablescd $DOMAIN_HOME/bin. ./setDomainEnv.shStep 3. then executed the command below to create the new passwordcd ../

  • Kibbee
    database wordpress server-side
    I recently started receiving errors when trying to access my wordpress admin panel. I don’t know if its a server side error or a wordpress code error. For example when visiting wordpress admin panel instead of the default url:http://www.yourwebsite.com/wp-admin/It returns the following:http://www.yourwebsite.com/KLllM/wp-admin/Can any of you explain why this is happening? Thanks in advance!

Web site is in building