Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

kingletas

@kingletas
About
Posts
80
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Access Database help
    K kingletas

    Hello all, Latelt I have been complicating my life with more programming that i can handle. Now I am developing databases applications on the pocket pc and using Data on the Run to design them on the fly but I would like to use them directly from my device, anyone knows how? And how can i use a "access database" from the pocket pc itself? Or even better how can i use databases on the pocket pc? I tried to use sqlce but not luck, probably bad installation or something like it. I got a php and asp server for the pocket pc and since i don't have a computer i will be creating websites with php and asp in the pocket pc... cool huh!? best regards, Luis

    Programming mode = NET realm!

    Mobile question php database design sysadmin

  • TreeView help [modified]
    K kingletas

    Hey all, I am fairly new to the asp.net world and so far i am missing C# fully capabilities and control. But since i want to learn how to create OS Independent solutions i want to try it out. Could anyone help me with this: 1-) How can i display a message box? In java script i know i can use alert, prompt and confirm. But i am using C# scripts... and some asp books i have doesn't have it. 2-) I have a treeView control on the website but i want to collapse all elements but the selected node, i am doing like this: protected void TreeVIEW_SelectedNodeChanged(object sender, EventArgs e) { TreeView Current = (TreeView)sender; TreeNodeCollection childs = Current.SelectedNode.ChildNodes; Current.SelectedNode.CollapseAll(); foreach (TreeNode child in childs) if (child.Parent == Current.SelectedNode) child.Parent.Expand(); else child.Parent.Collapse(); } what am i doing wrong??? thx all

    Luis E Tineo S

    modified on Thursday, February 07, 2008 1:59:38 PM

    ASP.NET csharp question java asp-net tools

  • Project: Some random questions
    K kingletas

    Hey all, In a lottery system website what are the things to keep in mind? So far I thought about: SSL to secure the client/server connection Login site to authenticate and authorize the people working for the lottery place. Database to store all the info. The application itself, which by the way, would it be possible to make this website interface look like a desktop form? It has to be a website type application because it needs to be OS independent. It has to run in a Unix Computer as well as in a Nintendo DS and everything in between. Where can i get some c# scripts tutorials/books? I have googled it but I haven't been lucky so far. I have a solid php/apache/mysql/javascript base but I am like quick sand in asp/IIS/Sql Server. I know the basics of Sql Server but so far it gets frustrating. But I have learned my lesson you guy taught me, always work with the best and the best tools if you want to be part of the elite. thanxs all!!!! PS: this is the random question: which one is better asp or php, IIS or Apache, Javascript or C# scripts or vbscripts, python or c# or VB or Java? And what is the difference between J# and C# because all examples i see in MSDN look the same to me!

    Luis E Tineo S

    C# question database csharp java javascript

  • Help needed for a project
    K kingletas

    Paul Conrad wrote:

    Your friend is best asking his instructor for guidance. That is what they are supposed to be there for.

    I agree on that. I asked my friend to find out what kind of project or field his professor wanted but all my friend got from him was a "Think what you would like to do and we talk on Tuesday." This is very important because this is like one big step to graduate from University. Another thing is that my friend doesn't really know a thing about programming or hardware, so basically i will be tutoring/helping him build the project from the beginning to the end. I know there are a lot of "ethic/moral" principles involve and it might be wrong to do it. But as long as i don't cross the line between helping him to do it and do it myself i think it will be ok. I thought of a: "Vehicle with a camera and fingerprint reader to ID the driver and the passengers" good for companies with no passengers policies. This is project is more suited for my country Dominican Republic where people tends to give a ride to anyone. Also i thought of Mobile/smartphone application that constantly send a message where the owner is located, but the fact of violating the principle of privacy makes me uncomfortable; so i am about to discard that idea. I have this tools, maybe it will help to know i have them: * Microsoft Visual Studio 2005 * Microsoft Sql Server 2005 * Microsoft Finger Print Reader & the GrFinger SDK * An extra low resolution small camera * If it is needed i can get a GPS receiver. * 2 PDA with WM 5 * Belkin Bluetooth adapter * a few Atmega 8 with the "programmer" Again Thanks for the help, Best regards.

    Luis E Tineo S

    C# csharp help

  • Help needed for a project
    K kingletas

    Hey all, I would like, if possible, you could tell me some ideas for projects. I have a friend who needs my help doing his final project but i run out of ideas. I think helping him will help me keep the C# programming skills i got from you guys. Thanks so much, any help is greatly appreciate it!! Best regards

    Luis E Tineo S

    C# csharp help

  • XML starting...
    K kingletas

    I have a newbie question... I would like to save the format of a text, i thought writing another file to keep all this info but I thought i could do it with a xml file only, but i don't know how to use XML. How could i do that every time i save a file i can save its format in the xml file? thanks all

    Luis E Tineo S

    XML / XSL question xml tutorial

  • Coding 4 fun
    K kingletas

    Hey all, I am really a fan of notepad, i don't know why, but since I don't have a great editor in my pocket pc, I decided to do one of my own(in C#). But the problem comes when i need to save the format of the text in the textbox it does not save the format at all..., is there a richtext component for the pocket pc in the market? I was thinking on saving an xml file in a database with all the format for each file but then i will be turning this little notepad application into a huge application because i don't know how many files i will have.... is there any way to save the format and style of the text i have in the textbox??? And how could i open word and pdf documents in the ppc? Basically i want to be able to use my application to read all sort of documents including .MHT Thanks all, Best regards!

    Codeproject Team helped and helps LETAS to be a better programmer... nothing is better than good people like these... Merry Christmas to all of you!!!

    Mobile csharp database collaboration xml help

  • Controlling Flashget
    K kingletas

    Hey all, Today I would like to start a little program for me, just for fun. I use flasget as the default download manager because of the speed and wide range of downloads options. However due to the lack of my own "Internet connection", i have a little problem. My problem is that i share the internet connection and whenever i use flashget the bandwith goes down to everyone and i kind of dislike the internet to be unplugged when i am downloading something, so i thought that maybe checking the network bandwith, could anyone lead me on this as well, i could decide whether to start flashget or not, normally night time it is always a good idea to do so but not always... to avoid any complaints from my lovely neighbors... the reason of sharing the internet connection is because it is cheaper! Would it be possible to control Flashget behavior from another program, like decide which torrent to download? any suggestions? So far i can start flashget from my little notepad program and run it for a certain amount of time, but for this to work flashget needs to be configured to automatically start downloading when it starts, and i would like to automate that :). Thanks in advance.

    Luis E Tineo S

    C# sysadmin performance help question

  • Database learning basics
    K kingletas

    Hello everyone, I am trying to learn the basics of databases but i found myself deep in an hole now: System.InvalidCastException was unhandled Message="Specified cast is not valid." Source="System.Data" StackTrace: at System.Data.SqlClient.SqlBuffer.get_Int32() at System.Data.SqlClient.SqlDataReader.GetInt32(Int32 i) at Winner.Database.votos() in I:\Documents\Server\Winner\Winner\Database.cs:line 48 at Winner.Form1.Form1_Load(Object sender, EventArgs e) in I:\Documents\Server\Winner\Winner\Form1.cs:line 21 at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) at System.Windows.Forms.Control.SetVisibleCore(Boolean value) at System.Windows.Forms.Form.SetVisibleCore(Boolean value) at System.Windows.Forms.Control.set_Visible(Boolean value) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at Winner.Program.Main() in I:\Documents\Server\Winner\Winner\Program.cs:line 17 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.Executio

    C# database sysadmin learning

  • Thanks to you all!!!
    K kingletas

    Of course my friend. I started to work on building an small library and so far so good. I would like to learn C# and add some knowlegde of Visual Basic and ASP to help as much as people as i can. There's not way i won't be trying to help somehow!!! Thanks Again!

    Luis E Tineo S

    C# help

  • Thanks to you all!!!
    K kingletas

    I finally got my project done, sorry i should have said we got my project done... thank you so much, i know i couldn´t have done it without your support and help. We got A+ and my professor loved it and thought it was the best project presented to him during last december 1st. I can´t express with words my gratitude to each and one of you but please accept this: Thanks!!! Thanks for helping me become an engineer and finish college!!! Sincerly best regards,

    Luis E Tineo S

    C# help

  • Encrypting Problem
    K kingletas

    Hey all, Actually i should say that i have a Decrypting problem :-(! I am trying to use a certificate to prove the client/server identity in my application. I was sending a welcome message from the server to the client, encryption/decryption worked smoothly, but this message is just a string like the client number, name of the computer where the server is running and all that... Now when i am doing this: Publisher publisher = new Publisher(new Init().Certificate()); byte[] message = Encoding.ASCII.GetBytes(new Encrypting().Encrypt(new Init().GetRawCertData(), password)); .... and sending it over the "Network", i am getting a bad data exception... something about a wrong character in the Base64 String. I am sending fixed length bytes[] and when i am just sending strings it works. But when i try to change the type of data to send it messes up. My logic to Encrypt/Decrypt is create an instance of the algorithm to use, i use the login password to encrypt/decrypt and i init the key and IV of the algorithm with them, a memory stream and the crypto stream... and return an array of bytes. Maybe i am doing something wrong, any idea of how to use the certificate better, I am extremely new to Certificates and Digital Signatures. I tried SSL Stream but i could not make work :-(. Thanks in advance:-D! Best regards!!!

    Luis E Tineo S

    C# sysadmin security cryptography algorithms data-structures

  • Authentication and Authorization
    K kingletas

    hey my[Hope not to bother anyone] people, I would like to Authenticate a user in the main form application[client] and then in the server. And also i would like to authorize the users. I don't have webforms... i have desktop applications which connects to the Internet and communicate one to each other. Say i would like to: 1 - Send the SID of each computer where the client is running 2 - Send the login information of the current user 3 - Verify the current user of the Client has Administrator rights from the server 4 - Verify the publisher of the application. I am thinking that if i verify the publisher i can use the certificate, is that right? 5 - Digitally sign and verify all data that is being sent over the network. I know how to sign all data but i am not so sure how to verify it. would this be possible: . . . byte[] toSend = Encoding.ASCII.GetBytes(Convert.ToString(WindowsIdentity.GetCurrent())); NetworkStream net = ClientTCP.GetStream(); try{ net.Write(toSend,0,toSend.Length); } catch{} finally { net.Close(); ClientTcp.Close(); } ... in the other side i would have a receiving part but i would like to do this: try{ int bytes = net.Read(toRead,0,toRead.Length); string iden = Encoding.ASCII.GetString(toRead,0,bytes); //assuming that i have all the bytes of the windows identity WindowsIdentity W_iden = (WindowsIdentity) iden; } would that code help me send a windows identity over the network???? thanks all... regards

    The way of the code warrior is... SO beginning of the legacy starts now!

    C# sysadmin security cryptography help tutorial

  • Password derive bytes
    K kingletas

    Hey all, is there any way to get a password derive bytes working on .net ce??? I am using encryption but i am really in love with the way i do it and i don't want to get any 3rd party software because that will get the application a little bit heavier!!! Thanks....

    Luis E Tineo S

    Mobile csharp security question

  • SQL CE
    K kingletas

    Email me if you are still interest on SQLCE and will send you the cab file for the pocket pc and i think i have the SQLCE installer for the computer itself but i am not sure!!!

    Luis E Tineo S

    Mobile database c++ help announcement workspace

  • Add/Remove program through code
    K kingletas

    Have you considered it using the Process Class? I think since most programs have an Install/Uninstall program you can use Process.Start() to execute these programs to do it and pass the parameters they take to completely uninstall! I know this sounds too easy but i am not experienced on programming but that is how i would do it at first and then enhance it! hope it helps!

    Luis E Tineo S

    C# help

  • Running programs
    K kingletas

    Hey all, I recently completed it some applications which run smoothly and perfectly on the computer i developed it. However when i run the application elsewhere it throws an exception that it does not in the main computer... what could be possibly happening here? I have installed IIS on the computer and when i am running the application i go to the project/bin/release folder and run the program, but it does nothing that throw that exception.... I have previously finished some applications on other computers and there are fine but i wonder why this is not working! Any tips? Thanks all, PS: I got some new books and hopefully after reading them and learning how to explode C# i will be able to help out here as much as i am been helped!!!!

    Luis E Tineo S

    C# csharp windows-admin help tutorial question

  • Garbage collector Message; how to solve it?
    K kingletas

    I am using a keyboard hook to stop most if not all the keys on the keyboard but i am getting this message: CallbackOnCollectedDelegate was detected Message: A callback was made on a garbage collected delegate of type 'Client!KeyboardHook+HookHandlerDelegate::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be kept alive by the managed application until it is guaranteed that they will never be called. any ideas how to solve it?

    Luis E Tineo S

    C# tutorial question

  • This is weird!!!
    K kingletas

    Why am i getting this exception... System.TypeInitializationException was unhandled Message="The type initializer for 'Client.Form1' threw an exception." Source="Client" TypeName="Client.Form1" StackTrace: at Client.Form1..ctor() at Client.Program.Main() in C:\Documents and Settings\Luis\Desktop\Server\Client\Client\Program.cs:line 21 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() I added this code to it.... In a different class from the main form i have this: // the try and catch were there already try{....}// see the finally statement for more info catch(....){....}// i just warned that all files in the given file will be deleted //this is the newly added code finally { //path points to a given folder,specify by the Administrator during runtime // foreach(string npath in Dfiles) { File.Delete(npath); } string[] files = Directory.GetFiles(@"C:\Backup", "*.lais"); foreach (string npath in files) { File.Copy(npath, path, true); } //this is the same i have in the try statement Dfiles = Directory.GetFiles(@path,".lais");//just to make sure i have all the files now... if(Dfiles>0){ foreach (string npath in Dfiles) { tempor = File.ReadAllBytes(Dfiles[i]); ms = new MemoryStream(tempor, 0, tempor.Length); crypto = new CryptoStream(ms, Algorythm.CreateDecryptor(), CryptoStreamMode.Read); crypto.Read(tempor, 0, tempor.Length); Images[i] = Image.FromStream(ms); crypto.Close();

    C# sysadmin cryptography

  • File System Watcher
    K kingletas

    I found what i was doing wrong :-).... on my desperation to get it to work i added: Watcher.BeginInit() when the form loaded, but once i removed that line it worked well... now any tip on how to restore it the files to what they were before any changes were made... like if renamed restore the file and if delete it restore it as well... I think a better question would be how can i backup an entire folder or how to store these files into a database without causing perfomance issues? -- modified at 0:53 Friday 16th November, 2007

    Luis E Tineo S

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups