Forum Replies Created

Ganesh Member

It’s hard to say with the information given, but depending on how many visitors, and how your site is constructed, 1 table (2 if you want users to register) should be enough.
In it’s most basic form it should have:

  • The page (Can’t help you here, depends on your site)
  • The name of the user posted (Or the user ID if your site has registered users)
  • The date posted
  • And of course the comment itself.

You could go a step further, by also logging the users IP addresses etc, but that’s up to you.

Then on each page, you can load the comments matching the page.

We can be more of a help when you give us some more information about your site.

Ganesh Member

I’m not sure if it’s correct or not (or if there is a better way)

package test;
import org.python.util.PythonInterpreter; 
 
public class ScriptManagerPython { 
 
   PythonInterpreter interpreter = null; 
 
 
   public ScriptManagerPython() { 
      PythonInterpreter.initialize(System.getProperties(), 
                                   System.getProperties(), new String[0]);   
      this.interpreter = new PythonInterpreter(); 
   } 
 
   public void execfile( final String fileName ) { 
      this.interpreter.execfile(fileName); 
   } 
 
   public void executeMethod(final String methodName) {
      this.interpreter.eval(methodName);
   }
   public static void main( String gargs[] ) { 
      ScriptManagerPython pythonManager = new ScriptManagerPython(); 
      pythonManager.execfile("c:/python.py"); 
      pythonManager.executeMethod("Hello().abc()");
   } 
}
Ganesh Member

I would recommend PHP, because it is a nice language to learn.. I made some nice things with it and I’m proud on every script i made.

Ganesh Member

Here is my timer example, enjoy:

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
public class TimerTest {
public static void main(String[] args) {
Timer timer = new Timer(1000, new Listener()); //creates a timer
//that ticks once every
//second and creates a new
//ActionListener timer.start(); //starts the timer while(true);
//Infinite loop that insures the program won't end
//if it wasn't here the program would end before the
//timer has a chance to start. } }
class Listener implements ActionListener {
private int minutes = 0;
private int hours = 0;
private int secs = 0;

@Override public void actionPerformed(ActionEvent e) {
secs++; if(secs == 60)
{ secs = 0; minutes++; if(minutes == 60) { minutes = 0; hours++; } }

System.out.println(hours + " : " + minutes + " : " + secs); } }
Ganesh Member

If OP is going to be making keygens, OP will need to learn ASM. I assumed a baseline competency of skill with looking at the disassembly of executables. I agree completely that OP needs to learn the basics.

I will disagree with you on the IDA Pro part, I use it at work and it’s pretty awesome. Yes, the user interface was clearly designed by a potato, however the data reference following and the asm to C ability (which is not bad btw) is quite nice. Makes reverse engineering and unpacking so much more fluid. IF you can get over the UI that is (seriously, it’s ass). Not that anything you said about the command line tools is wrong, I just feel that IDA is more efficient, thus better.

Ganesh Member

How about a “Tic tac toe” game to start off with?

Inputs will be
1A, 1B, 1C
2A, 2B, 2C
3A, 3B, 3C

Respectively. Keep it simple, no need for any graphical interface.. Use the console.

Ganesh Member

Here you go. I just tested this an it worked. Use it for reference. I didn’t have a data source so I created a test class. Could be a little cleaner, but I’m pretty beat. Should add a catch for null, but this should get you in the right direction. Just use the values I put in under cust1,2, and 3 to search.

Add these to the form:

DataGridView named dgvCustomers,
TextBox called tbSearch
ComboBox called cbFilter
Button called btnSearch

Then add Customers as your DataSource in properties for the DataGridView

  public partial class Form1 : Form
    {

        private List customerList;

        public Form1()
        {
            InitializeComponent();
            InitializeCustomers();

        }

        public class Customers
        {
            private string _customerName;
            private string _productID;
            private string _customerID;
            private string _orderID;

            public string CustomerName
            {
                get { return _customerName; }
                set { _customerName = value; }
            }

            public string ProductID
            {
                get { return _productID; }
                set { _productID = value; }
            }
            public string CustomerID
            {
                get { return _customerID; }
                set { _customerID = value; }
            }
            public string OrderID
            {
                get { return _orderID; }
                set { _orderID = value; }
            }
        }

        private void InitializeCustomers()
        {
            Customers cust1 = new Customers();
            cust1.CustomerName = "Jack Johnson";
            cust1.ProductID = "p111";
            cust1.CustomerID = "c111";
            cust1.OrderID = "o111";

            Customers cust2 = new Customers();
            cust2.CustomerName = "John Smith";
            cust2.ProductID = "p222";
            cust2.CustomerID = "c222";
            cust2.OrderID = "o222";

            Customers cust3 = new Customers();
            cust3.CustomerName = "Joe Johnson";
            cust3.ProductID = "p333";
            cust3.CustomerID = "c333";
            cust3.OrderID = "o333";

            List cList = new List();

            cList.Add(cust1);
            cList.Add(cust2);
            cList.Add(cust3);

            customerList = cList;
               
            dgvCustomers.DataSource = customerList;

            this.cbFilter.DisplayMember = "Text";
            this.cbFilter.ValueMember = "Value";

            var items = new[] {
            new { Text = "ProductID", Value = "ProductID" },
            new { Text = "CustomerID", Value = "CustomerID" },
            new { Text = "OrderID", Value = "OrderID" },
            };

            this.cbFilter.DataSource = items;
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {


            var pQuery = from cust in customerList
                         where cust.ProductID == tbSearch.Text
                         select cust;

            var oQuery = from cust in customerList
                         where cust.OrderID == tbSearch.Text
                         select cust;

           
            var cQuery = from cust in customerList
                         where cust.CustomerID == tbSearch.Text
                         select cust;
       
            string cbValue = cbFilter.SelectedValue.ToString();

            switch (cbValue)
            {
                case "CustomerID":
                    dgvCustomers.DataSource = cQuery.ToList();
                    break;
                case "ProductID":
                    dgvCustomers.DataSource = pQuery.ToList();
                    break;
                case "OrderID":
                    dgvCustomers.DataSource = oQuery.ToList();
                    break;
            }
        }
    }
Ganesh Member

Learning C++ is not easy at all if you don’t have a programming background with a simpler language based on C (Javascript or PHP for example). Knowing C++ very good can get you a job indeed, but the basic stuff, that’s the same as every programming language and pretty much everyone knows the basics. To get a very advanced C++ programmers, you’ll have to spend years learning and practicing, it’s not very easy; That’s wh it’s considered one of the best programming languages.

If I were you I’d start learning more about HTML/CSS/Javascript/Wordpress and become a ThemeForest seller.

Ganesh Member

You’d probably require some form of encryption. Steps that I see in my mind:
1: Encrypt the files in a way that allows decryption with the license key
2: Have a non-encrypted EXE file that prompts for the license key and then decrypts the remaining files if entered correctly
3: Allow normal use of the files

You could also just make a single EXE with the remaining files compressed/encrypted inside of it. Entering the correct license key allows it to extract the files to the drive.

Ganesh Member

use switch()

Ganesh Member

There is no ‘tricking’. If an application/game is written using .net 4.5 components, then those components are required. You can’t just pretend you have it and it work.

And as stated, support ends in April 2014, much, much later than they would normally support an OS. It’s time to suck it up and move on to Windows 8

Ganesh Member

If you want to be expert in a programming language, best way to do it is by completing projects. For example, if you want to expertise in Java, I advise you to work on an android app, the project it self doesn’t matter, it can be as silly as you want. But you have to bear in mind that the more complex your project is, the more you will probably learn.

Ganesh Member

A good university will motivate you to study and work on projects.
Of course you can study by yourself with online material and participate in open source projects, but I think that most people eventually give up before reaching a high level of knowledge/experience in programming

if they don’t have to.
Professional programmers or postgrad/grad IT students have to study and work either they like it or not sometimes so they tend to reach a higher level of knowledge.

Of course, there are exceptions to every rule. Some people have more talent and some people try really hard to achieve their goal while some don’t care at all.

For everything you decide to do in life:
If you are a hobbyist, it is very difficult to “compete” in terms of knowledge and experience a trained professional has.
The amount of time you spend matters.

Famous universities, like MIT, have free online video courses you can watch.
You can also try codecademy.com (their free video material is really good)
Or you can read books. (whatever works for each individual)

Ganesh Member

I started programming when I was 8 years old. You don’t need to know Algebra to be a good programmer, but it does help.

I wouldn’t worry about “analytical skills” requirement. This is such an open ended requirement it means nothing.

I recommend you find some online tutorials about C++ and start doing some simple programming to get a handle on what programming is about and you will find out yourself what kind of analytical skills programming needs. Don’t worry if its hard at first, it took me years (15+ years) to become a decent programmer.

The basics of programming are fairly easy to pickup if you have the right book and resources to learn from.

Ganesh Member

Unfortunately, you will not get that out of book. It’s a skill that needs to be acquired over time. Basically, it’s about how good you can solve problems logically.

Some people are naturally analytical–it’s their personality type. Spock from Star Trek would be considered the king of analytical people. Sometimes people say that analytical people overthink things or can be very anal.

There are some quick tests online that you can try to test your analytical skills, so may be start from there.

Given that, if it’s a course you are interested in then just take it. Don’t worry about how analytical you are. Practice doing some basic C programming online. The typical “Hello World” program. There are tons of ebooks here on beginning programming. Usually any beginning programming class starts out with C programming, so that would be a good start. Math skills help too. I suck at math, but I’m very good at logic, which makes up for it.

Viewing 15 posts - 16 through 30 (of 63 total)
en_USEnglish