I like to read alot of IT books e.g programming / functional. But the problem is that after reading I cannot find reasons to put it into practise and I soon forget what I read.
Any advise?
So my logic is flawed and I need a better and correct way to resize an image in my c# app
I need a function similar to this setup
public void ResizeImageForWeb(string OriginalFile, string NewFile, int MaxWidth, int MaxHeight, int Quality)
{
// Resize Code
}
Basically, I'm a web designer lost trying to programming a desktop app.
Hello, I need in analyzing system output sound runtime. OS: Linux. The first thing I need is get different frequency values. Programming language: c++.
hi guys ,
I am new to iphone Programming . I have a rectangle on which i display some data. I want to assign an image to its background. And is it possible that the data would be visible even after the image is assigned . Any idea how i can do it ?
Thanks
Does anyone could tell something about these file? As I know:
1. Common-Lisp and Scheme are both some lisp programming langue.
2. common-Lisp source file *.lisp can be compiled into binary file *.fasl which can be load faster than the source file.
Q:Can the Scheme source code *.scm be compiled into some binary file that will be load faster than the source code?
Thanks in advance
joe
I use ServiceHost for hosting WCF cervices.
I want to host near to my WCF services my own tcp programm (like WCF service but with out WCF) for direct sockets operations (like lien to some sort of broadcasting TCP stream)
I want to use ServiceHost for somehow simplyfiing proces of creating my TCP sender\listener, to somehow control namespaces (so I would be able to let my clients to send TCP streams directly into my service using some nice URLs like www.example.com:34123/myserver/stream?id=1 or www.example.com:34123/myserver/stream?id=222 and so that I will not be bothered with Idea of 1 client for 1 socket at one time moment, BTW I realy want to keep my WCF services on the same port as my own server or what it is...)
Can any body please hrlp me with this?
hi,
Can anybody explain me the most interesting feature of C language apart from other languages.
Am expecting some nice replies , so that every one can brush up their own programming skills
/Kanu__
Hi,
since moving to Windows 7 (IIS 7.5), the debug assertions do not prompt a pop up dialog anymore.
I have tested this in a separate project, and noticed that they do work when using the integrated Visual Studio Developer server (Cassini) but they do not work when using IIS Web Server.
This is a big issue for us since we are counting on debug assertions to identify potential programming errors, so any help would be appreciated.
Thanks. Eyal.
Is there high-level language out there for describing algorithms, that's geared towards specification, rather than implementation?
The idea would be to have a machine-readable archive of standard algorithms, with machine-readable annotations on trade-offs, and variants.
I'm thinking of something like CycL / OpenCyC, but for algorithms and programming patterns.
I'm trying to do the following: listen on some port for loopback connections only, and then start listening on any IP address.
Here is the code:
TcpListener l1 = new TcpListener(new IPEndPoint(IPAddress.Loopback, 12345));
l1.Start();
Socket s = l1.AcceptSocket();
Console.ReadKey();
//s.Close();
l1.Stop();
TcpListener l2 = new TcpListener(new IPEndPoint(IPAddress.Any, 12345));
l2.Start();
l2.AcceptSocket();
Console.ReadKey();
The problem is that if a client connects while listening on the Loopback address (l1), then no other client can connect to the Loopback address when the second listener (l2) starts listening. why is that?
Another thing I noticed is that if I close all clients that connected to l1 (the remarked line), then l2 does accept loopback connections.
Any ideas?
Hi,
I use Vim as primary IDE for programming, with some plugins i have a good environment but for a single point: debugging.
I have recompiled Vim to use vimgdb, and it works, but the problem is that i need to attach to a process started by a root user so i have to use sudo to do it....
How can i do this with vimgdb?
Thanks in advance.
I have a friend who is trying to make the switch to Linux, but is hung up on the apparent lack of debugging/IDE environments for C++, especially as they relate to template programming. He has been using visual studio for years and is maybe a little spoiled by their awesome IDE. Does anyone have any good suggestions for an environment where he can, under Linux, develop and debug with all of the usual things (Breakpoints, line highlighting for compilation errors, step in/over/out/etc, etc) that he's accustomed to? Thanks!
Given any number of the random real numbers from the interval [0,1] is there exist any method to construct a floating point number with zero decimal part?
Your algorithm can use only random() function calls and no variables or constants. No constants and variables are allowed, no type casting is allowed. You can use for/while, if/else or any other programming language operands.
Problem
I send the message "12345" from the socket server to the client:
myPrintWriter.println("12345");
After that I read this message on client:
int c;
while ((c = inputStream.read( )) != -1)
{
byte[] buffer2 = new byte[1];
buffer2[0] = (byte) c;
String symbol = new String(buffer2 , "UTF-8");
String symbolCode = Integer.toString((int)buffer2[0]);
Log.v(symbol, symbolCode);
}
Log.v("c == -1", "Disconnected");
What I see in log:
With
out.println("abcrefg");
Why? I think it's line termination symbol. I need to get string "12345" or any other and next strings correctly. Help me please.
I'm looking for a complete list of security guidelines for programming and deploying PHP web sites and applications on an Apache (Linux) server. Basically, a "security check list" to run through before finishing a project. I.e.,
Cross Site Scripting
Cross Site Request Forgery
Sanitize form data that goes into database
Disable register globals and error reporting in custom php.ini
Upload files below web root
...(the list goes on)
I did some searching on the internet and in this forum, but couldn't find a comprehensive, succinct, and complete list of guidelines.
Thanks in advance.
There are two connected sockets. How can I interconnect them?
Data appeared on the one socket should be written to the other.
EOF/FIN should propogate well. If one is half-closed, the other should also be half-closed.
int client = get_connected_client_socket();
int proxy = get_connected_proxy_socket();
negotiate_with_proxy(proxy);
iterconnect(client, proxy);
// Now forgot about both client and proxy.
// System should handle IO/shutdown/close.
// Ideally even without any support of the user-space process.
Can Linux do it? Can it be done by tricking connection tracking to change tracking status of existing connection?
@related http://stackoverflow.com/questions/2673975/determine-how-much-can-i-write-into-a-filehandle-copying-data-from-one-fh-to-the
I'm fairly confused with some of the terms used in Linux when I learn about web backend programming.
What is the difference and relationships between "process", "threads", "task" and "jobs" in Linux?
I am in need of an outline on teaching VB6/VBA to some co-workers. The material I am pretty confident I can fill in, just need a sense of how to order the class material. Its not going to be hard core programming [nix the VB6 jokes please :) ] but do want to touch the basics. Any free outlines or even entire presentations out there that I can use? I've been looking but nothing concrete so far.
thanks
I am looking to get into web application development. I am an undergrad CS major with experience in programming desktop apps, but with only basic knowledge regarding how web apps work. Any suggestions of where to start? Javascript, php, perl, ruby, python? Should I look into frameworks like django, seaside, ruby on rails, etc at first or wait until I am more experienced to use those?
Choice of programming language is an early decision which it is expensive to get wrong. Does anyone have any practical experience of developing for Facebook using .Net and MS vs LAMP? What are the pros and cons?
I'm looking at a database dump file, and I see many records in various tables with their version number set in values other than 0 (even 94 in one case). I understand it has to do with hibernate locking strategy, but my concern is that today is Sunday, and the site has almost no visitors so is: is this normal ? Or is there a known hibernate bug or even some programming malpractice producing this ?
I've got a real interesting situation. I have an existing web app that runs on a number of desktops fine. On a few desktops I see the following behavior:
Upon clicking a link that opens up a new window (to another URL in the same domain) the IE window freezes and IE needs to be killed.
This happens on IE 6 & 7.
When using Fiddler I see NO traffic when clicking the link.
When using IE HttpAnalyzer I see a request register but no response.
If I change the MaxConnectionsPerServer registry setting to a higher value, e.g. 10 the problem goes away.
Looking at netstat I dont see any abnormal connections.
So I'm totally confused, the issue seems to be on the client side and seems to be related to IE not being able to make an additional socket connection to the server, but netstat doesn't show that.
Ideas?
I need to learn programming ASP.NET with C# but I can't find a good online book to do so.
Is there an ASP.NET equivalent to Diving into python?
All of the books are quite expensive.
I already know Java and C++, are there any major differences between them and C#?
If so are there materials that cover only the differences and what I should learn?
I'm wondering if you have one, or u know any developer/programmer online portofolio. I know many web developers have one (and in many cases very well designed), but not any C++ developer (for example). On the net there are only some good blogs about some programming language, but in many cases these are extremely poor from a design point of view and i'd say very "nerdy".
Hi,
I have windows xp in my work and i programming on zend framework.
I need to install ubuntu for execute doctrine orm commands from linux console, I faile to do it on windows.
I thinking about 2 option of UBUNTU installation:
1.install ubuntu 10.04 on Virtual Box (Sun Virtual Machine).
2.create new primary partition and install ubuntu 10.04 directly.
Which options do you suggest to do?
Thanks