|
Sit on my computer?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Using 7zip is going to require a C# wrapper, like SevenZipSharp: [^].
However, since .NET now provides GZip, I use that, and it's quite powerful.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
If you're using it from code, yes.
But OG's suggestion was to use WinZip to manually compress the files, to see how much compression could reasonably be expected. I was just pointing out that you don't need to pay for a tool to do that.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am using the following code line to input a .obj file with an associated .mtl file and several associated .jpg files pointed to by the .mtl file:
aerobaticsSceneControl.Scene - SerializationEngine.Instance.LoadScene(modelFile);
where model file the pointer to the .obj file.
I have on .obj file that loads correctly. However in another file I have downloaded I get the following exception message at the line above:
An unhandled exception of type System.ArgumentNullException; occurred in mscorlib.dll
Additional Information Value can not be null
I get the following debug messages which as someone new to this type of programming doesn't make any sense:
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'D:\Aerobatics Project\Mitch's Stuff\July 13\Aerobatics Project\Aerobatics Scene\bin\Debug\Aerobatics Scene.vshost.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Deployment\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x17dc has exited with code 0 (0x0).
The thread 0x5678 has exited with code 0 (0x0).
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'D:\Aerobatics Project\Mitch's Stuff\July 13\Aerobatics Project\Aerobatics Scene\bin\Debug\Aerobatics Scene.exe'. Symbols loaded.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'D:\Aerobatics Project\Mitch's Stuff\July 13\Aerobatics Project\Aerobatics Scene\bin\Debug\SharpGL.SceneGraph.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'D:\Aerobatics Project\Mitch's Stuff\July 13\Aerobatics Project\Aerobatics Scene\bin\Debug\SharpGL.WinForms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'D:\Aerobatics Project\Mitch's Stuff\July 13\Aerobatics Project\Aerobatics Scene\bin\Debug\SharpGL.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'D:\Aerobatics Project\Mitch's Stuff\July 13\Aerobatics Project\Aerobatics Scene\bin\Debug\SharpGL.Serialization.dll'. Symbols loaded.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Composition\v4.0_4.0.0.0__b77a5c561934e089\System.ComponentModel.Composition.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Aerobatics Scene.vshost.exe' (CLR v4.0.30319: Aerobatics Scene.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.ArgumentNullException' in mscorlib.dll
The program '[22836] Aerobatics Scene.vshost.exe' has exited with code -1 (0xffffffff).
I've used 3-D Builder to make sure that all the .jpg files properly link to the pointers in the .mtl file and that all seems Ok.
I'd appreciate any suggestions on where to go from here. Model loads properly when I remove the pointer to the .mtl file from the .obj file so at least I know the .obj file is not a fault.
Thanks for any help,
Andy Cruce
|
|
|
|
|
You need to go back to the point in your code where the error occurred to try and establish which variable does not contain the correct value. Use a breakpoint and your debugger to stop the program just before that point and step through to see what is happening.
|
|
|
|
|
Andy, when you post a question like this, it's helpful to provide a little bit more information. For instance, you're leaving us to guess where SerializationEngine comes from, so while I assume you're talking about SharpGL I can't be certain this is the case. As a hint, when you're running the application inside Visual Studio, you can get the stack trace where the exception occurs. When you get the exception dialog, choose to copy the details of the exception as this lists the full stack and gives you more of an idea where the problem is. Also, if the code you're running against is SharpGL, you can download and build it yourself and step into the code while you're debugging.
This space for rent
|
|
|
|
|
listshop = (from d in dbcontext.Customers where d.CustomerId==clsCommon.Custid & d.ReservedField3!="InActive"
select new ClsPurchaseOrder
{
CustomerId = d.CustomerId,
CustomerName = d.CustomerName,
ReservedField6=d.ReservedField6
}).ToList();
listshop.OrderBy(x => int.Parse(x.ReservedField6)).ToList();
|
|
|
|
|
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
So where are you stuck? What have you tried? What help do you need?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I have a question about eager loading of navigation properties using EF6. Note I like to use the extension syntax.
Suppose I have three tables A, B and C. There is a one-to-many relationship between A and B, and also a relationship between B and C. So, for a given A, I can obtain the collection of Bs using two methods:
Method 1 : using a primary key query...
var Bs = context.B.Where(b => b.AId == A.Id).ToList();
Method 2 : using the navigation property...
var Bs = a.Bs.ToList();
Now, suppose I want to load C for each B at the same time. Using Method 1 it is...
var Bs = context.B.Include(b => b.C).Where(b => b.AId == A.Id).ToList();
My question is, is there an equivalent simple way to load C for each B when using Method 2?
|
|
|
|
|
A lot of the time this is based on the serializer that you're using. JSON.NET, for instance, will do this automatically when serializing an IQueryable. Depending on your serialization strategy, you may need to roll your own.
If you need to work with it in intermediate logic, any queryable references will be resolved automatically as long as is not disposed when you attempt to call them. Just don't force enumeration on the collection until you actually need the data item.
Something like
var b = context.As.SelectMany(a => a.Bs);
var c = PerformSomeLogicOnEnumerable(b);
return c.ToArray();
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
If I am not wrong, you need all A, B and relevant C's? Give this a try (where "B" is a collection of B's as a property of "A", and likewise "C" is a collection of C's as a property of "B"):
var abc = context.A.Include("B").Include("B.C");
You have just been Sharapova'd.
|
|
|
|
|
..
modified 23-Jun-20 3:35am.
|
|
|
|
|
Which password are you talking about, the router or some website? In either case it is likely that the only way to check is by trying to login via the web interface.
|
|
|
|
|
...
modified 23-Jun-20 3:36am.
|
|
|
|
|
We do not condone, support, or assist in the production of malicious code in any way, form, or manner. This is a professional site for professional developers.
If you want to know how to create such things, you need to visit a hacking site: but be sure to disable all firewalls and antivirus products first or they won't trust you enough to tell you.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Message Closed
modified 23-Jun-20 3:35am.
|
|
|
|
|
Daniyaltjm wrote: i want to hack the wi-fi router by brutforce
That is trying to bypass a legitimate security feature.
That is malicious.
You will get no help from us.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Message Closed
modified 23-Jun-20 3:37am.
|
|
|
|
|
OriginalGriff is right. You might think that you have a legitimate reason for wanting to do this (although I remain to be convinced about this) but you wouldn't be the only one able to read the answer and, if we provide you with code to do this, we are also providing the code for people who want to do damage with this technique. This is why you will get no code for this here - we don't know who will end up reading it.
This space for rent
|
|
|
|
|
I already suggested you just need to use the web interface to try and login. If your password is not valid it will not let you. But if you want to know how to hack a system then you have come to the wrong place.
|
|
|
|
|
Message Closed
modified 23-Jun-20 3:40am.
|
|
|
|
|
You check WiFi passwords by logging on to the ADSL modem/router through the web interface of the device. I guess you have never done this so you think there is some other way to hack the device.
|
|
|
|
|
No, i don't want connect the setup interface router! just i want for example: i have a textBox and into it is "1234" pass & i have a button . i want when click the button the "1234" in the textBox send to the my SSID for example "USER" & return "correct" or "incorrect" the pass ! It is very complicated ? please help me...
|
|
|
|
|
|
Very thank's, can you build a simple program that has a listBox to show SSID & a textBox that i enter a password & click the button & return me a messagebox that this is correct or incorrect ? 
|
|
|
|