Member Avatar

Starts with 2 uneqaul positive numbers on the board. 2players move in turn to write on board a positive number equal to the difference of any 2 numbers already written on the board. the new number written on the board should not be repeated. the player who can not write a new number looses the game. can any one help to implement this game?

Member Avatar
0
14
Member Avatar

Hi guys, I have been working on a sudoku solver, that finds solution by brute forcing during my school days.... But due to the huge number of loops i couldn't do it at then.... SO decided to complete it now.... So here the algorithm: 1. Get the number of fixed values from the user. 2. Populate those values.. 3. Check if the input sudoku is valid. 4. If valid, fill each posistion by checking numbers from 1 to 9, if they are valid at the posistion... 5. Done.... Well! In my sudoku i have only checked for rows and colomns..... …

Member Avatar
0
29
Member Avatar

Hello I modified tutorial code found at http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android?fid=1592519&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&spc=Relaxed&fr=1#xx0xx to create an assignment list app, and when I click modify, delete, or cancel it force closes. Here is my DatabaseHelper.java code: public class DatabaseHelper extends SQLiteOpenHelper { static final String dbName="assignDB"; static final String employeeTable="Assignments"; static final String colID="assignID"; static final String colName="assignName"; static final String colAge="dueDate"; static final String colDept="Course"; static final String deptTable="Course"; static final String colDeptID="CourseID"; static final String colDeptName="CourseName"; static final String viewEmps="ViewAssignments"; public DatabaseHelper(Context context) { super(context, dbName, null,33); // TODO Auto-generated constructor stub } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub …

0
12
Member Avatar

Hello Daniweb. I have an issue here about my LAN network. I want to redirect all the web traffic that is happening in my LAN to a proxy server before it reaches the router and the Internet. Now, my infrastructure is like this where client makes request, request go through switch and straight to router & internet. Now I want to enforce where whatever request being made would go through switch > proxy server > router > internet. Is this possible. This is a way for me to control my network. Hope anyone can give me a hint on how …

Member Avatar
0
26
Member Avatar

Hello people. I am a security analyst from a computer security solution company. I am handling a project where an entreprise of 50 to 100 employee which requires an Active Directory to maintain their staff in the LAN network. So my team and I have deplyoed an active directory for that entreprise and all the PC and laptop have been configured to join the AD. But the problem arises as there will be 2 login option for the users. One being the localhost or localadmin login which they were using before and another one is the AD login option. However …

Member Avatar
0
7
Member Avatar

We have all been there, you have a centered site and some pages have enough content to fill the screen while some don't. So when you move back and forth between one that does and one that doesn't you see a small jump happen. Here is a small css fix to force the vertical scrollbar to always be visible. The [URL="http://brian.chipsofttech.com/blogs/brian/post/Force-Vertical-Scrollbar.aspx"]site[/URL] i got the original snippet from claims it doesn't work in opera but it worked for me in all browsers. What i changed is since "overflow-y" isn't valid css i started with the valid "overflow" to enable both the …

Member Avatar
0
18
Member Avatar

I am trying to create a licensing system where you have a license key as a variable in a file. Then, it includes a file that's on an external server. The server then does all the validating, and returns whether the key is valid or not. The problem is, an experienced PHP programmer could just remove the include, and change the variable to true. Does anyone know of a way to force a file to be included? I'd like for all the security stuff to be on my server, not my client's. Here's some of my code: [B]serial.php[/B] [CODE]<?php $serial …

Member Avatar
0
5
Member Avatar

I'm looking for how to brute-force the result of something like [ICODE]"Hi".hashCode()[/ICODE]. I have no idea where to start. I looked for the answer for like 5 hours yesterday. It's for reversing Minecraft seeds. (seed-to-text). I tried my own solution. It's too crap to even post. I tried to find a MD5 brute-force cracker on Google, and modify it to use [ICODE]hashCode()[/ICODE]. It went like [ICODE]"a", "b", "c" ... "y", "z", "a"[/ICODE] when it should be like [ICODE]"a", "b", "c" ... "y", "z", "aa", "ab"[/ICODE]. I really need some help. And it has to be recursive. (So it will go …

Member Avatar
0
12
Member Avatar

Hi need to shut down my computer using c# and i have tried this code : [CODE]Process.Start("shutdown","/s");[/CODE] but the problem is that this code forces all running application to close like if i am having an opened document in notepad this code will close the notepad without saving and i don't want that to happen [B][I]Thank you[/I][/B]

Member Avatar
0
5
Member Avatar

How can we find a sub array in a 1-D array? Is there any other method other than brute force method? It is not for maximum sum so we can't use kadane's algorithm.

Member Avatar
0
10
Member Avatar

I had posted here already here to forum a [beautiful code for solving Sudoku puzzles](http://www.daniweb.com/software-development/python/code/294304/eleagant-and-fast-sudoku-with-generator-expressions), so I was in kind of dilemma what to do, as I read the task to do a sudoku solve as one task in Project Euler. To use the code from before and just take the correct corner numbers or really do something from cratch by myself? I decided to do both. So I took the right answer from the super fine solver and entered the forum to see what kind of solutions the early posters had done for the task. I took as bench …

Member Avatar
0
13
Member Avatar

Hi I need to force a logoff for idle users through a gpo, after 2 or 3 hours of inactivity. The suggested solution in every previous thread is using a screensaver that does the trick. That's not good for me, because I need the screen saver to run after 15 minutes of inactivity and lock the computer. I need to force the end of a session after a much greater period of time. Lock after 15 minutes (I already use the screensaver). Logoff after 3 hours. I'm using W2003svr and workstations have xp. Thanks in advance!! Lenni

Member Avatar
0
4
Member Avatar

Hi everybody. I have a question about the best way to retrieve a list of possible source values from the & operator without checking every combination between the range required. The basic problem I face is I have [B](a&b)=c[/B] I know the values of b and c but need to find all possible values of a. Also note the minimum value of a is equal to c and the maximum value of a is ~(b^c) as demonstrated below. So I have already got in two variables the minimum and maximum possible values of a. Now I need to find the …

Member Avatar
0
3

The End.